lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
Public Member Functions | Protected Member Functions | Friends
lean::containers::any Class Reference

Any interface. More...

#include <any.h>

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

List of all members.

Public Member Functions

virtual const std::type_info & type () const =0
 Gets the type of the stored value.

Protected Member Functions

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

Friends

template<class Value >
Value * any_cast (any *)
 Gets a pointer to the value of the given type, if the given value type matches the value stored by the given object, nullptr otherwise.

Detailed Description

Any interface.


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