.TH "std::experimental::optional< _Tp >" 3 "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::experimental::optional< _Tp > \- Class template for optional values\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .SS "Public Types" .in +1c .ti -1c .RI "using \fBvalue_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "template, \fBdecay_t\fP< _Up > > >, \fBis_constructible\fP< _Tp, _Up && >, __not_< is_convertible< _Up &&, _Tp > > >::value, bool > = false> constexpr \fBoptional\fP (_Up &&__t)" .br .ti -1c .RI "template, \fBdecay_t\fP< _Up > > >, \fBis_constructible\fP< _Tp, _Up && >, is_convertible< _Up &&, _Tp > >::value, bool > = true> constexpr \fBoptional\fP (_Up &&__t)" .br .ti -1c .RI "template >, \fBis_constructible\fP< _Tp, const _Up & >, __not_< is_convertible< const _Up &, _Tp > >, __not_< __converts_from_optional< _Tp, _Up > > >::value, bool > = false> constexpr \fBoptional\fP (const optional< _Up > &__t)" .br .ti -1c .RI "template >, \fBis_constructible\fP< _Tp, const _Up & >, is_convertible< const _Up &, _Tp >, __not_< __converts_from_optional< _Tp, _Up > > >::value, bool > = true> constexpr \fBoptional\fP (const optional< _Up > &__t)" .br .ti -1c .RI "template >, \fBis_constructible\fP< _Tp, _Up && >, __not_< is_convertible< _Up &&, _Tp > >, __not_< __converts_from_optional< _Tp, _Up > > >::value, bool > = false> constexpr \fBoptional\fP (optional< _Up > &&__t)" .br .ti -1c .RI "template >, \fBis_constructible\fP< _Tp, _Up && >, is_convertible< _Up &&, _Tp >, __not_< __converts_from_optional< _Tp, _Up > > >::value, bool > = true> constexpr \fBoptional\fP (optional< _Up > &&__t)" .br .ti -1c .RI "template \fBenable_if_t\fP< \fBis_constructible\fP< _Tp, _Args &&\&.\&.\&. >::value > \fBemplace\fP (_Args &&\&.\&.\&. __args)" .br .ti -1c .RI "template \fBenable_if_t\fP< \fBis_constructible\fP< _Tp, \fBinitializer_list\fP< _Up > &, _Args &&\&.\&.\&. >::value > \fBemplace\fP (\fBinitializer_list\fP< _Up > __il, _Args &&\&.\&.\&. __args)" .br .ti -1c .RI "constexpr \fBoperator bool\fP () const noexcept" .br .ti -1c .RI "constexpr _Tp & \fBoperator*\fP () &" .br .ti -1c .RI "constexpr _Tp && \fBoperator*\fP () &&" .br .ti -1c .RI "constexpr const _Tp & \fBoperator*\fP () const &" .br .ti -1c .RI "constexpr const _Tp && \fBoperator*\fP () const &&" .br .ti -1c .RI "_Tp * \fBoperator\->\fP ()" .br .ti -1c .RI "constexpr const _Tp * \fBoperator\->\fP () const" .br .ti -1c .RI "template \fBenable_if_t\fP< __and_< __not_< is_same< optional< _Tp >, \fBdecay_t\fP< _Up > > >, \fBis_constructible\fP< _Tp, _Up >, __not_< __and_< \fBis_scalar\fP< _Tp >, is_same< _Tp, \fBdecay_t\fP< _Up > > > >, \fBis_assignable\fP< _Tp &, _Up > >::value, optional & > \fBoperator=\fP (_Up &&__u)" .br .ti -1c .RI "template \fBenable_if_t\fP< __and_< __not_< is_same< _Tp, _Up > >, \fBis_constructible\fP< _Tp, const _Up & >, \fBis_assignable\fP< _Tp &, _Up >, __not_< __converts_from_optional< _Tp, _Up > >, __not_< __assigns_from_optional< _Tp, _Up > > >::value, optional & > \fBoperator=\fP (const optional< _Up > &__u)" .br .ti -1c .RI "optional & \fBoperator=\fP (\fBnullopt_t\fP) noexcept" .br .ti -1c .RI "template \fBenable_if_t\fP< __and_< __not_< is_same< _Tp, _Up > >, \fBis_constructible\fP< _Tp, _Up >, \fBis_assignable\fP< _Tp &, _Up >, __not_< __converts_from_optional< _Tp, _Up > >, __not_< __assigns_from_optional< _Tp, _Up > > >::value, optional & > \fBoperator=\fP (optional< _Up > &&__u)" .br .ti -1c .RI "void \fBswap\fP (optional &__other) noexcept(\fBis_nothrow_move_constructible\fP< _Tp >() &&__is_nothrow_swappable< _Tp >::value)" .br .ti -1c .RI "constexpr _Tp & \fBvalue\fP () &" .br .ti -1c .RI "constexpr _Tp && \fBvalue\fP () &&" .br .ti -1c .RI "constexpr const _Tp & \fBvalue\fP () const &" .br .ti -1c .RI "constexpr const _Tp && \fBvalue\fP () const &&" .br .ti -1c .RI "template _Tp \fBvalue_or\fP (_Up &&__u) &&" .br .ti -1c .RI "template constexpr _Tp \fBvalue_or\fP (_Up &&__u) const &" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class std::experimental::optional< _Tp >"Class template for optional values\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.