|
| AnyHolder () |
|
| AnyHolder (const ALLOC &allocator) |
|
template<typename T , typename std::enable_if<!std::is_same< typename std::decay< T >::type, AnyHolder >::value &&!std::is_same< typename std::decay< T >::type, ALLOC >::value, int >::type = 0> |
| AnyHolder (T &&value, const ALLOC &allocator=ALLOC()) |
|
template<typename T , typename std::enable_if<!std::is_same< typename std::decay< T >::type, AnyHolder >::value, int >::type = 0> |
| AnyHolder (NoInitT, T &&value, const ALLOC &allocator=ALLOC()) |
|
| ~AnyHolder () |
|
| AnyHolder (const AnyHolder &other) |
|
| AnyHolder (NoInitT, const AnyHolder &other) |
|
| AnyHolder (const AnyHolder &other, const ALLOC &allocator) |
|
| AnyHolder (NoInitT, const AnyHolder &other, const ALLOC &allocator) |
|
AnyHolder & | operator= (const AnyHolder &other) |
|
AnyHolder & | assign (NoInitT, const AnyHolder &other) |
|
| AnyHolder (AnyHolder &&other) noexcept |
|
| AnyHolder (NoInitT, AnyHolder &&other) noexcept |
|
| AnyHolder (AnyHolder &&other, const ALLOC &allocator) |
|
| AnyHolder (NoInitT, AnyHolder &&other, const ALLOC &allocator) |
|
AnyHolder & | operator= (AnyHolder &&other) |
|
AnyHolder & | assign (NoInitT, AnyHolder &&other) |
|
template<typename T , typename std::enable_if<!std::is_same< typename std::decay< T >::type, AnyHolder >::value, int >::type = 0> |
AnyHolder & | operator= (T &&value) |
|
void | reset () |
|
template<typename T > |
void | set (T &&value) |
|
template<typename T > |
void | set (NoInitT, T &&value) |
|
template<typename T > |
T & | get () |
|
template<typename T > |
const T & | get () const |
|
template<typename T > |
bool | isType () const |
|
bool | hasValue () const |
|
| AllocatorHolder () |
|
| AllocatorHolder (const allocator_type &allocator) |
|
| AllocatorHolder (allocator_type &&allocator) |
|
allocator_type | get_allocator () const |
|
| AllocatorHolder (const AllocatorHolder &other)=default |
|
| AllocatorHolder (AllocatorHolder &&other)=default |
|
| ~AllocatorHolder ()=default |
|
AllocatorHolder & | operator= (const AllocatorHolder &other)=default |
|
AllocatorHolder & | operator= (AllocatorHolder &&other)=default |
|
template<typename ALLOC = std::allocator<uint8_t>>
class zserio::AnyHolder< ALLOC >
Type safe container for single values of any type which doesn't need RTTI.
Definition at line 317 of file AnyHolder.h.
template<typename ALLOC = std::allocator<uint8_t>>
template<typename T , typename std::enable_if<!std::is_same< typename std::decay< T >::type, AnyHolder >::value &&!std::is_same< typename std::decay< T >::type, ALLOC >::value, int >::type = 0>
Constructor from any value.
- Parameters
-
value | Value of any type to hold. Supports move semantic. |
Definition at line 352 of file AnyHolder.h.
template<typename ALLOC = std::allocator<uint8_t>>
template<typename T , typename std::enable_if<!std::is_same< typename std::decay< T >::type, AnyHolder >::value, int >::type = 0>
Constructor from any value which prevents initialization.
- Parameters
-
value | Value of any type to hold. Supports move semantic. |
Definition at line 367 of file AnyHolder.h.
template<typename ALLOC = std::allocator<uint8_t>>
template<typename T , typename std::enable_if<!std::is_same< typename std::decay< T >::type, AnyHolder >::value, int >::type = 0>
Value assignment operator.
- Parameters
-
value | Any value to assign. Supports move semantic. |
- Returns
- Reference to this.
Definition at line 576 of file AnyHolder.h.