These are almost orthogonal concerns. shared_ptr
plays no part in allocation of objects.
Where it is concerned is in the deletion of memory no longer referenced. If you have allocated from anything other than the default heap you'll need to provide a custom deleter