A helper class for creating a shared pointer to self.
More...
#include <EnableSharedFromBase.h>
|
| template<class Derived > |
| auto | sharedFromBase () -> std::shared_ptr< Derived > |
| |
template<class Base>
class support::EnableSharedFromBase< Base >
A helper class for creating a shared pointer to self.
- Template Parameters
-
| T | The type of the base class that inherits from this class (CRTP) The classic std::enable_shared_from_this<T> can be used to create a shared_ptr to self. However, derived classes would need to cast that shared_ptr to their own type to use it. This class wraps that casting. |
◆ sharedFromBase()
template<class Base >
template<class Derived >
The documentation for this class was generated from the following file: