|
lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Any interface. More...
#include <any.h>
Public Member Functions | |
| virtual const std::type_info & | type () const =0 |
| Gets the type of the stored value. | |
Protected Member Functions | |
| LEAN_INLINE any & | operator= (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. | |
Any interface.
1.7.6.1