BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslstl::Variant_CopyConstructVisitor< t_VARIANT_BASE > Class Template Reference

#include <bslstl_variant.h>

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

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
 

Constructor & Destructor Documentation

◆ Variant_CopyConstructVisitor()

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

Create a Variant_CopyConstructVisitor object that, when invoked, will copy-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_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
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: