Is there a way to get the object type from a shared pointer? Suppose:
auto p = std::make_shared<std::string>("HELLO");
I want to get the string type from p i.e. something like:
p::element_type s = std::string("HELLO");
meaning: p::element_type is a std::string.
Thanks!