.TH "std::experimental::any" 3cxx "Wed Apr 11 2018" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::experimental::any .SH SYNOPSIS .br .PP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBany\fP () noexcept" .br .ti -1c .RI "\fBany\fP (const \fBany\fP &__other)" .br .ti -1c .RI "\fBany\fP (\fBany\fP &&__other) noexcept" .br .ti -1c .RI "template, typename _Mgr = _Manager<_Tp>> \fBany\fP (_ValueType &&__value)" .br .ti -1c .RI "\fB~any\fP ()" .br .ti -1c .RI "void \fBclear\fP () noexcept" .br .ti -1c .RI "bool \fBempty\fP () const noexcept" .br .ti -1c .RI "\fBany\fP & \fBoperator=\fP (const \fBany\fP &__rhs)" .br .ti -1c .RI "\fBany\fP & \fBoperator=\fP (\fBany\fP &&__rhs) noexcept" .br .ti -1c .RI "template \fBany\fP & \fBoperator=\fP (_ValueType &&__rhs)" .br .ti -1c .RI "void \fBswap\fP (\fBany\fP &__rhs) noexcept" .br .ti -1c .RI "const \fBtype_info\fP & \fBtype\fP () const noexcept" .br .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 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 89 of file any\&. .SH "Constructor & Destructor Documentation" .PP .SS "std::experimental::any::any ()\fC [inline]\fP, \fC [noexcept]\fP" .PP Default constructor, creates an empty object\&. .PP Definition at line 120 of file any\&. .SS "std::experimental::any::any (const \fBany\fP & __other)\fC [inline]\fP" .PP Copy constructor, copies the state of \fC__other\fP\&. .PP Definition at line 123 of file any\&. .SS "std::experimental::any::any (\fBany\fP && __other)\fC [inline]\fP, \fC [noexcept]\fP" .PP Move constructor, transfer the state from \fC__other\fP\&. .PP \fBPostcondition:\fP .RS 4 \fC__other\&.empty()\fP (not guaranteed for other implementations) .RE .PP .PP Definition at line 138 of file any\&. .SS "template, typename _Mgr = _Manager<_Tp>> 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 146 of file any\&. .SS "std::experimental::any::~any ()\fC [inline]\fP" .PP Destructor, calls \fCclear()\fP .PP Definition at line 155 of file any\&. .SH "Member Function Documentation" .PP .SS "void std::experimental::any::clear ()\fC [inline]\fP, \fC [noexcept]\fP" .PP If not empty, destroy the contained object\&. .PP Definition at line 188 of file any\&. .SS "bool std::experimental::any::empty () const\fC [inline]\fP, \fC [noexcept]\fP" .PP Reports whether there is a contained object or not\&. .PP Definition at line 207 of file any\&. .SS "\fBany\fP& std::experimental::any::operator= (const \fBany\fP & __rhs)\fC [inline]\fP" .PP Copy the state of\&. .PP Definition at line 160 of file any\&. .SS "\fBany\fP& std::experimental::any::operator= (\fBany\fP && __rhs)\fC [inline]\fP, \fC [noexcept]\fP" .PP Move assignment operator\&. .PP \fBPostcondition:\fP .RS 4 \fC__rhs\&.empty()\fP (not guaranteed for other implementations) .RE .PP .PP Definition at line 171 of file any\&. .SS "template \fBany\fP& std::experimental::any::operator= (_ValueType && __rhs)\fC [inline]\fP" .PP Store a copy of \fC__rhs\fP as the contained object\&. .PP Definition at line 179 of file any\&. .SS "void std::experimental::any::swap (\fBany\fP & __rhs)\fC [inline]\fP, \fC [noexcept]\fP" .PP Exchange state with another object\&. .PP Definition at line 198 of file any\&. .SS "const \fBtype_info\fP& std::experimental::any::type () const\fC [inline]\fP, \fC [noexcept]\fP" .PP The \fCtypeid\fP of the contained object, or \fCtypeid(void)\fP if empty\&. .PP Definition at line 211 of file any\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.