BloombergLP::bslstl::Variant_VTable

This component-private struct computes an array in which element i is a pointer to Variant_Function<t_RET, t_VISITOR, t_VARIANT, i>::functionImpl.

Synopsis

Declared in <bslstl_variant.h>

template<
    class t_RET,
    class t_VISITOR,
    class t_VARIANT,
    class t_DUMMY>
struct Variant_VTable;

Description

The referenced function invokes a t_VISITOR with alternative i of t_VARIANT and implicitly converts the return type to t_RET.

Specializations

NameDescription
Variant_VTable<t_RET, t_VISITOR, t_VARIANT, bslmf::IntegerSequence<std::size_t, t_INDICES...>> This partial specialization provides the actual s_map array once t_DUMMY is deduced as an IntegerSequence of alternative indices.