|
forb
|
A template that can be used to ease the declaration of a shared_pointer of a given type. More...
#include <shareable.hpp>
Public Types | |
| using | const_T = typename std::add_const< T >::type |
| Alias to the same type T, but with const qualifier. | |
| using | ptr_t = std::shared_ptr< T > |
| Alias to std::shared_ptr<T> | |
| using | ptr_const_t = std::shared_ptr< const_T > |
| Alias to std::shared_ptr<const T> | |
Static Public Member Functions | |
| template<typename ... Args> | |
| static ptr_t | new_ptr (Args &&... args) |
| Calls the constructor of the class with the given arguments to create a shared_pointer to T. More... | |
| template<typename ... Args> | |
| static ptr_const_t | new_ptr_const (Args &&... args) |
| Calls the constructor of the class with the given arguments to create a shared_pointer to a const T. More... | |
A template that can be used to ease the declaration of a shared_pointer of a given type.
|
inlinestatic |
Calls the constructor of the class with the given arguments to create a shared_pointer to T.
Alias of std::make_shared<T>.
|
inlinestatic |
Calls the constructor of the class with the given arguments to create a shared_pointer to a const T.
Alias of std::make_shared<const_T>.
1.8.12