libstdc++
GNU C++ library
std::_Optional_payload< _Tp, true, true, false > Struct Template Reference
Inheritance diagram for std::_Optional_payload< _Tp, true, true, false >:
Inheritance graph
Collaboration diagram for std::_Optional_payload< _Tp, true, true, false >:
Collaboration graph

Public Types

using _Stored_type = remove_const_t< _Tp >
 

Public Member Functions

 _Optional_payload ()=default
 
 _Optional_payload (_Optional_payload &&)=default
 
 _Optional_payload (const _Optional_payload &)=default
 
 ~_Optional_payload ()=default
 
template<typename... _Args>
void _M_construct (_Args &&... __args) noexcept(is_nothrow_constructible_v< _Stored_type, _Args... >)
 
constexpr void _M_copy_assign (const _Optional_payload_base &__other)
 
constexpr void _M_destroy () noexcept
 
constexpr const _Tp & _M_get () const noexcept
 
constexpr _Tp & _M_get () noexcept
 
constexpr void _M_move_assign (_Optional_payload_base &&__other) noexcept(__and_v< is_nothrow_move_constructible< _Tp >, is_nothrow_move_assignable< _Tp >>)
 
constexpr void _M_reset () noexcept
 
constexpr _Optional_payloadoperator= (_Optional_payload &&__other) noexcept(__and_v< is_nothrow_move_constructible< _Tp >, is_nothrow_move_assignable< _Tp >>)
 
_Optional_payloadoperator= (const _Optional_payload &)=default
 

Public Attributes

bool _M_engaged
 
_Storage< _Stored_type_M_payload
 

Detailed Description

template<typename _Tp>
struct std::_Optional_payload< _Tp, true, true, false >

Definition at line 326 of file std/optional.


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