[#BloombergLP-bslstl-Variant_Function-0b-functionImpl]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Variant_Function-0b.adoc[Variant&lowbar;Function]::functionImpl
:relfileprefix: ../../../
:mrdocs:

This component&hyphen;private function invokes the specified `visitor` with the active alternative object of the specified `variant` and implicitly converts the return type to (template parameter) `t&lowbar;RET`&period; The pre&hyphen;C&plus;&plus;17 implementation is limited to invocations of the form `visitor(variant)`&period; The behavior is undefined unless (template parameter) `t&lowbar;INDEX` is the index of the active alternative&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;variant&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
t&lowbar;RET
functionImpl(
    t&lowbar;VISITOR&& visitor,
    t&lowbar;VARIANT&& variant);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
