lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Any value. More...
#include <any.h>
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_value & | operator= (const value_type &value) |
Assignment. | |
LEAN_INLINE value_type & | get () |
Gets the stored value. | |
LEAN_INLINE const value_type & | get () const |
Gets the stored value. | |
LEAN_INLINE volatile value_type & | get () 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_value * | clone () 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. |
Any value.