any () noexcept
Default constructor, creates an empty object.
any (const any &__other)
Copy constructor, copies the state of __other.
any (any &&__other) noexcept
Move constructor, transfer the state from __other.
template<typename _ValueType , typename _Tp = _Decay<_ValueType>, typename _Mgr = _Manager<_Tp>, typename enable_if< is_constructible< _Tp, _ValueType && >::value, bool >::type = true> any (_ValueType &&__value)
Construct with a copy of __value as the contained object.
template<typename _ValueType , typename _Tp = _Decay<_ValueType>, typename _Mgr = _Manager<_Tp>, typename enable_if<!is_constructible< _Tp, _ValueType && >::value, bool >::type = false> any (_ValueType &&__value)
Construct with a copy of __value as the contained object.
~any ()
Destructor, calls clear()
void clear () noexcept
If not empty, destroy the contained object.
bool empty () const noexcept
Reports whether there is a contained object or not.
any & operator= (const any &__rhs)
Copy the state of another object.
any & operator= (any &&__rhs) noexcept
Move assignment operator.
template<typename _ValueType > enable_if_t<!is_same< any, decay_t< _ValueType > >::value, any & > operator= (_ValueType &&__rhs)
Store a copy of __rhs as the contained object.
void swap (any &__rhs) noexcept
Exchange state with another object.
const type_info & type () const noexcept
The typeid of the contained object, or typeid(void) if empty.
template<typename _Tp > static constexpr bool __is_valid_cast ()
template<typename _Tp > void * __any_caster (const any *__any)
A type-safe container of any type.
An any object's state is either empty or it stores a contained object of CopyConstructible type.
Definition at line 87 of file any.
Default constructor, creates an empty object.
Definition at line 126 of file any.
Copy constructor, copies the state of __other.
Definition at line 129 of file any.
Move constructor, transfer the state from __other.
Postcondition:
Definition at line 146 of file any.
Construct with a copy of __value as the contained object.
Definition at line 163 of file any.
Construct with a copy of __value as the contained object.
Definition at line 176 of file any.
Destructor, calls clear()
Definition at line 185 of file any.
If not empty, destroy the contained object.
Definition at line 227 of file any.
References empty().
Referenced by operator=(), and ~any().
Reports whether there is a contained object or not.
Definition at line 269 of file any.
Referenced by any(), clear(), swap(), and type().
Copy the state of another object.
Definition at line 190 of file any.
Move assignment operator.
Postcondition:
Definition at line 201 of file any.
Store a copy of __rhs as the contained object.
Definition at line 218 of file any.
Exchange state with another object.
Definition at line 237 of file any.
The typeid of the contained object, or typeid(void) if empty.
Definition at line 273 of file any.
References empty().
Generated automatically by Doxygen for libstdc++ from the source code.