Suppose there is a class:
class A { public: private: std::string a; int b; bool c; UserClass d; }; A std::shared_ptr was created for it. When calling Sharedptr_classA.reset(); Will the destructor be called for UserClass and will memory be freed from other properties?