|
| BasicAny () |
|
| BasicAny (const ALLOC &allocator) |
|
template<typename T , typename std::enable_if<!std::is_same< typename std::decay< T >::type, BasicAny >::value &&!std::is_same< typename std::decay< T >::type, ALLOC >::value, int >::type = 0> |
| BasicAny (T &&value, const ALLOC &allocator=ALLOC()) |
|
| ~BasicAny () |
|
| BasicAny (const BasicAny &other) |
|
| BasicAny (const BasicAny &other, const ALLOC &allocator) |
|
BasicAny & | operator= (const BasicAny &other) |
|
| BasicAny (BasicAny &&other) noexcept |
|
| BasicAny (BasicAny &&other, const ALLOC &allocator) |
|
BasicAny & | operator= (BasicAny &&other) |
|
template<typename T , typename std::enable_if<!std::is_same< typename std::decay< T >::type, BasicAny >::value, int >::type = 0> |
BasicAny & | operator= (T &&value) |
|
void | reset () |
|
template<typename T > |
void | set (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::BasicAny< ALLOC >
Type safe container for single values of any type which doesn't need RTTI.
Definition at line 228 of file Any.h.
template<typename ALLOC = std::allocator<uint8_t>>
template<typename T , typename std::enable_if<!std::is_same< typename std::decay< T >::type, BasicAny >::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 263 of file Any.h.
template<typename ALLOC = std::allocator<uint8_t>>
template<typename T , typename std::enable_if<!std::is_same< typename std::decay< T >::type, BasicAny >::value, int >::type = 0>
Value assignment operator.
- Parameters
-
value | Any value to assign. Supports move semantic. |
- Returns
- Reference to this.
Definition at line 380 of file Any.h.