BloombergLP::bslstl::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.

Synopsis

Declared in <bslstl_variant.h>

template<
    class t_RET,
    class t_VISITOR,
    class t_VARIANT,
    size_t t_INDICES...>
struct Variant_VTable<t_RET, t_VISITOR, t_VARIANT, bslmf::IntegerSequence<std::size_t, t_INDICES...>>;

Description

In order to allow for perfect forwarding, both t_VISITOR and t_VARIANT must be of reference type. If they are not, something went wrong.

Type Aliases

NameDescription
FuncPtr Function pointer type for a Variant_Function::functionImpl instantiation.

Static Data Members

NameDescription
s_map Array of function pointers, indexed by alternative index, each invoking the visitor on the corresponding alternative.