BloombergLP::bslstl::Variant_CopyConstructVisitor::operator()

Copy-construct the alternative at index t_INDEX from other.

Synopsis

Declared in <bslstl_variant.h>

template<
    size_t t_INDEX,
    class t_TYPE>
void
operator()(
    bsl::in_place_index_t<t_INDEX> indexTag,
    t_TYPE const& other) const;

Description

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.

Parameters

NameDescription
indexTagtag encoding the index of the alternative being visited
otheralternative value to copy-construct from