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

#include <bslstl_variant.h>

Public Member Functions

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

Detailed Description

template<class t_VARIANT_BASE>
class bslstl::Variant_CopyConstructVisitor< t_VARIANT_BASE >

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

See bslstl_variant

Constructor & Destructor Documentation

◆ Variant_CopyConstructVisitor()

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

Member Function Documentation

◆ operator()()

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

Copy-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: