mn::container::basic_any::basic_any_holder_impl< T > Class Template Reference
The real impl of the basic_any holder. More...
Inheritance diagram for mn::container::basic_any::basic_any_holder_impl< T >:
Collaboration diagram for mn::container::basic_any::basic_any_holder_impl< T >:
Public Member Functions | |
basic_any_holder_impl (T const &value) | |
basic_any_holder_impl (T &&value) | |
virtual std::type_info const & | type () const override |
Get the type info of the given type. More... | |
virtual basic_any_holder * | clone () const override |
Get a clone from this. More... | |
T | get () |
Get the stored value. More... | |
const T | get () const |
Get the stored value. More... | |
operator T () | |
Convert this to the type. More... | |
Static Public Member Functions | |
static const int | TYPE_SIZE () |
Private Attributes | |
T | m_typeHold |
Detailed Description
template<typename T>
class mn::container::basic_any::basic_any_holder_impl< T >
The real impl of the basic_any holder.
Constructor & Destructor Documentation
◆ basic_any_holder_impl() [1/2]
template<typename T >
|
inline |
◆ basic_any_holder_impl() [2/2]
template<typename T >
|
inline |
Member Function Documentation
◆ clone()
template<typename T >
|
inlineoverridevirtual |
Get a clone from this.
- Returns
- A clone from this.
Implements mn::container::basic_any::basic_any_holder.
◆ get() [1/2]
template<typename T >
|
inline |
Get the stored value.
- Returns
- The stored value.
◆ get() [2/2]
template<typename T >
|
inline |
Get the stored value.
- Returns
- The stored value.
◆ operator T()
template<typename T >
|
inline |
Convert this to the type.
◆ type()
template<typename T >
|
inlineoverridevirtual |
Get the type info of the given type.
- Returns
- the Type info of the given type.
Implements mn::container::basic_any::basic_any_holder.
◆ TYPE_SIZE()
template<typename T >
|
inlinestatic |
Member Data Documentation
◆ m_typeHold
template<typename T >
|
private |
The stored value.
The documentation for this class was generated from the following file: