Horizon
Loading...
Searching...
No Matches
ranges::any Struct Reference

Public Member Functions

 template (typename TRef, typename T=detail::decay_t< TRef >)(AND(!same_as< T
any any (TRef &&t)
 any (any &&) noexcept=default
 any (any const &that)
any & operator= (any &&) noexcept=default
any & operator= (any const &that)
 template (typename TRef, typename T=detail::decay_t< TRef >)(AND(!same_as< T
any any & operator= (TRef &&t)
void clear () noexcept
bool empty () const noexcept
std::type_info const & type () const noexcept
void swap (any &that) noexcept

Friends

template<typename T>
meta::if_c< std::is_reference< T >()||(bool) copyable< T >, T > any_cast (any &x)
template<typename T>
meta::if_c< std::is_reference< T >()||(bool) copyable< T >, T > any_cast (any const &x)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<typename T>
meta::if_c< std::is_reference< T >()||(bool) copyable< T >, T > any_cast (any &&x)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<typename T>
T * any_cast (any *p)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<typename T>
T const * any_cast (any const *p)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void swap (any &x, any &y) noexcept

◆ any_cast

template<typename T>
meta::if_c< std::is_reference< T >()||(bool) copyable< T >, T > any_cast ( any & x)
friend
Exceptions
bad_any_cast

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