title: Vector of pointer objects creation
body: <p>I have to implement <code>Vector&lt;MyObject*&gt;</code> by calling <code>AnotherClass::objectCollections()</code>. So here the return type should be <code>Vector&lt;MyObject*&gt;</code>. Also I have to return each <code>MyObject*</code> from another function that could return <code>MyObject*</code>. So that it can populate the Vector. I am newbie for C++ core programming. I want to know the safer way to implement this without crashing, even if the dynamically created vector array is large in number and it will be so helpful if you provide an adequate example or link with the needed return types.</p>