lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
Public Types | Public Member Functions | Protected Member Functions
lean::containers::any_value< Value, Heap > Class Template Reference

Any value. More...

#include <any.h>

Inheritance diagram for lean::containers::any_value< Value, Heap >:
lean::containers::any

List of all members.

Public Types

typedef Value value_type
 Value type.

Public Member Functions

LEAN_INLINE any_value ()
 Constructor.
LEAN_INLINE any_value (const value_type &value)
 Constructor.
LEAN_INLINE any_valueoperator= (const value_type &value)
 Assignment.
LEAN_INLINE value_typeget ()
 Gets the stored value.
LEAN_INLINE const value_typeget () const
 Gets the stored value.
LEAN_INLINE volatile value_typeget () volatile
 Gets the stored value.
LEAN_INLINE const volatile
value_type
get () const volatile
 Gets the stored value.
LEAN_INLINE const std::type_info & type () const
 Gets the type of the stored value.
LEAN_INLINE any_valueclone () const
 Clones this value.
LEAN_INLINE void destroy () const
 Destroys a clone.

Protected Member Functions

void * get_any_ptr (const std::type_info &type)
 Gets a pointer to the stored value, if the given type matches the value stored by this object, nullptr otherwise.

Detailed Description

template<class Value, class Heap = default_heap>
class lean::containers::any_value< Value, Heap >

Any value.


The documentation for this class was generated from the following file: