Usage and internals of std::enable_shared_from_this<T>:
enable_shared_from_this - overview, examples, and internals
by Hitesh Kumar
From the article:
Public inheritance from enable_shared_from_this<T> enables a class T to create additional shared_ptr instances to itself. Typically, enable_shared_from_this holds a weak_ptr to create shared_ptr on demand.
Add a Comment