STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
_Variant_allocator_construct_visitor< _Alloc, _Types > Struct Template Reference

Public Member Functions

template<class _Idx , class _Ty >
void operator() (_Idx, _Ty &&_Source) const
 

Public Attributes

_Variant_base< _Types...> & _Self
 
const _Alloc & _Al
 

Member Function Documentation

template<class _Alloc , class... _Types>
template<class _Idx , class _Ty >
void _Variant_allocator_construct_visitor< _Alloc, _Types >::operator() ( _Idx  ,
_Ty &&  _Source 
) const
inline
1060  { // initialize _Idx-th item in _Self from _Al and _Source
1061  _Construct_in_place(_Variant_raw_get<_Idx::value>(_Self._Storage()),
1062  _Variant_uses_allocator_t{}, _Al, _STD forward<_Ty>(_Source).get());
1063  _Self._Set_index(_Idx::value);
1064  }
void _Construct_in_place(_Ty &_Obj, _Types &&..._Args)
Definition: xmemory0:146
const _Alloc & _Al
Definition: variant:1055
_Source
Definition: corecrt_wstring.h:187
_Variant_base< _Types...> & _Self
Definition: variant:1054

Member Data Documentation

template<class _Alloc , class... _Types>
const _Alloc& _Variant_allocator_construct_visitor< _Alloc, _Types >::_Al
template<class _Alloc , class... _Types>
_Variant_base<_Types...>& _Variant_allocator_construct_visitor< _Alloc, _Types >::_Self

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