BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslstl::Variant_MoveConstructVisitor< t_VARIANT_BASE > Class Template Reference

#include <bslstl_variant.h>

Public Member Functions

 Variant_MoveConstructVisitor (t_VARIANT_BASE *variant)
 
template<size_t t_INDEX, class t_TYPE >
void operator() (bsl::in_place_index_t< t_INDEX >, t_TYPE &other) const
 

Detailed Description

template<class t_VARIANT_BASE>
class bslstl::Variant_MoveConstructVisitor< t_VARIANT_BASE >

This component-private class is a visitor that is used to implement the move constructor for bsl::variant.

See bslstl_variant

Constructor & Destructor Documentation

◆ Variant_MoveConstructVisitor()

template<class t_VARIANT_BASE >
bslstl::Variant_MoveConstructVisitor< t_VARIANT_BASE >::Variant_MoveConstructVisitor ( t_VARIANT_BASE *  variant)
inlineexplicit

Create a Variant_MoveConstructVisitor object that, when invoked, will move-construct an alternative in the specified variant.

Member Function Documentation

◆ operator()()

template<class t_VARIANT_BASE >
template<size_t t_INDEX, class t_TYPE >
void bslstl::Variant_MoveConstructVisitor< t_VARIANT_BASE >::operator() ( bsl::in_place_index_t< t_INDEX >  ,
t_TYPE &  other 
) const
inline

Move-construct the alternative at index (template parameter) t_INDEX from the specified other (i.e. the alternative that is being visited). Note that the allocator specified on construction of *d_variant_p will be used.


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