Friends | |
| template<typename T > | |
| meta::if_c< std::is_reference< T >)||(bool) copyable< T >, T > | any_cast (any &) |
| template<typename T > | |
| meta::if_c< std::is_reference< T >)||(bool) copyable< T >, T > | any_cast (any const &) |
| template<typename T > | |
| meta::if_c< std::is_reference< T >)||(bool) copyable< T >, T > | any_cast (any &&) |
| template<typename T > | |
| T * | any_cast (any *) noexcept |
| template<typename T > | |
| T const * | any_cast (any const *) noexcept |
| void | swap (any &x, any &y) noexcept |
Public Member Functions | |
| template<typename TRef , typename T = detail::decay_t<TRef>> | |
| any (TRef &&t) requires copyable< T > &&(!same_as< T | |
| any (any const &that) | |
| void | clear () noexcept |
| bool | empty () const noexcept |
| any & | operator= (any &&) noexcept=default |
| any & | operator= (any const &that) |
| template<typename TRef , typename T = detail::decay_t<TRef>> | |
| auto | operator= (TRef &&t) -> any &requires copyable< T > &&(!same_as< T, any >) |
| void | swap (any &that) noexcept |
| std::type_info const & | type () const noexcept |
Public Attributes | |
| any | __pad0__: ptr_(new impl<T>(static_cast<TRef &&>(t))) {} any(any &&) noexcept = default |
|
friend |
| bad_any_cast |
|
friend |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
friend |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
friend |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
friend |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.