[#BloombergLP-bslstl-Variant_VTable-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::Variant_VTable :relfileprefix: ../../ :mrdocs: 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`, defined above as a function that invokes a `t_VISITOR` with alternative `i` of `t_VARIANT` and implicitly converts the return type to `t_RET`. == Synopsis Declared in `<bslstl_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_RET, class t_VISITOR, class t_VARIANT, class t_DUMMY> struct Variant_VTable; ---- == Specializations [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/Variant_VTable-04.adoc[`Variant_VTable<t_RET, t_VISITOR, t_VARIANT, bslmf::IntegerSequence<std::size_t, t_INDICES...>>`] | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#