libstdc++
std::__future_base::_Result_alloc< _Res, _Alloc > Struct Template Referencefinal
Inheritance diagram for std::__future_base::_Result_alloc< _Res, _Alloc >:
[legend]

Public Types

using __allocator_type = __alloc_rebind< _Alloc, _Result_alloc >
 
typedef _Res result_type
 

Public Member Functions

 _Result_alloc (const _Alloc &__a)
 
void _M_set (_Res &&__res)
 
void _M_set (const _Res &__res)
 
_Res & _M_value () noexcept
 

Public Attributes

exception_ptr _M_error
 

Detailed Description

template<typename _Res, typename _Alloc>
struct std::__future_base::_Result_alloc< _Res, _Alloc >

A result object that uses an allocator.

Definition at line 267 of file future.

Member Typedef Documentation

◆ __allocator_type

template<typename _Res , typename _Alloc >
using std::__future_base::_Result_alloc< _Res, _Alloc >::__allocator_type = __alloc_rebind<_Alloc, _Result_alloc>

Definition at line 269 of file future.

◆ result_type

template<typename _Res >
typedef _Res std::__future_base::_Result< _Res >::result_type
inherited

Definition at line 233 of file future.

Constructor & Destructor Documentation

◆ _Result_alloc()

template<typename _Res , typename _Alloc >
std::__future_base::_Result_alloc< _Res, _Alloc >::_Result_alloc ( const _Alloc &  __a)
inlineexplicit

Definition at line 272 of file future.

Member Function Documentation

◆ _M_set() [1/2]

template<typename _Res >
void std::__future_base::_Result< _Res >::_M_set ( _Res &&  __res)
inlineinherited

Definition at line 255 of file future.

◆ _M_set() [2/2]

template<typename _Res >
void std::__future_base::_Result< _Res >::_M_set ( const _Res &  __res)
inlineinherited

Definition at line 248 of file future.

◆ _M_value()

template<typename _Res >
_Res & std::__future_base::_Result< _Res >::_M_value ( )
inlinenoexceptinherited

Definition at line 245 of file future.

Member Data Documentation

◆ _M_error

exception_ptr std::__future_base::_Result_base::_M_error
inherited

Definition at line 202 of file future.


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