.TH "std::experimental::any" 3cxx "Sun Jan 10 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::experimental::any \- A type-safe container of any type\&. .SH SYNOPSIS .br .PP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBany\fP () noexcept" .br .RI "Default constructor, creates an empty object\&. " .ti -1c .RI "template, typename _Mgr = _Manager<_Tp>, typename enable_if< is_constructible< _Tp, _ValueType && >::value, bool >::type = true> \fBany\fP (_ValueType &&__value)" .br .RI "Construct with a copy of \fC__value\fP as the contained object\&. " .ti -1c .RI "template, typename _Mgr = _Manager<_Tp>, typename enable_if::value, bool >::type = false> \fBany\fP (_ValueType &&__value)" .br .RI "Construct with a copy of \fC__value\fP as the contained object\&. " .ti -1c .RI "\fBany\fP (\fBany\fP &&__other) noexcept" .br .RI "Move constructor, transfer the state from \fC__other\fP\&. " .ti -1c .RI "\fBany\fP (const \fBany\fP &__other)" .br .RI "Copy constructor, copies the state of \fC__other\fP\&. " .ti -1c .RI "\fB~any\fP ()" .br .RI "Destructor, calls \fCclear()\fP " .ti -1c .RI "void \fBclear\fP () noexcept" .br .RI "If not empty, destroy the contained object\&. " .ti -1c .RI "bool \fBempty\fP () const noexcept" .br .RI "Reports whether there is a contained object or not\&. " .ti -1c .RI "template \fBenable_if_t\fP >::value, \fBany\fP & > \fBoperator=\fP (_ValueType &&__rhs)" .br .RI "Store a copy of \fC__rhs\fP as the contained object\&. " .ti -1c .RI "\fBany\fP & \fBoperator=\fP (\fBany\fP &&__rhs) noexcept" .br .RI "Move assignment operator\&. " .ti -1c .RI "\fBany\fP & \fBoperator=\fP (const \fBany\fP &__rhs)" .br .RI "Copy the state of another object\&. " .ti -1c .RI "void \fBswap\fP (\fBany\fP &__rhs) noexcept" .br .RI "Exchange state with another object\&. " .ti -1c .RI "const \fBtype_info\fP & \fBtype\fP () const noexcept" .br .RI "The \fCtypeid\fP of the contained object, or \fCtypeid(void)\fP if empty\&. " .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "template static constexpr bool \fB__is_valid_cast\fP ()" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "template \fBenable_if_t\fP< \fBis_object\fP< _Tp >::value, void * > \fB__any_caster\fP (const \fBany\fP *__any)" .br .in -1c .SH "Detailed Description" .PP A type-safe container of any type\&. An \fCany\fP object's state is either empty or it stores a contained object of CopyConstructible type\&. .PP Definition at line 90 of file experimental/any\&. .SH "Constructor & Destructor Documentation" .PP .SS "template, typename _Mgr = _Manager<_Tp>, typename enable_if::value, bool >::type = false> std::experimental::any::any (_ValueType && __value)\fC [inline]\fP" .PP Construct with a copy of \fC__value\fP as the contained object\&. .PP Definition at line 179 of file experimental/any\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.