[#BloombergLP-bslstl-Variant_Function-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Variant_Function-0b.adoc[Variant&lowbar;Function]&lt;void, t&lowbar;VISITOR, t&lowbar;VARIANT, t&lowbar;INDEX&gt;
:relfileprefix: ../../
:mrdocs:

This partial specialization is used when `t&lowbar;RET` is `void`&period; The visitor is invoked and its return value, if any, is ignored&period; This partial specialization is necessary because a `void`&hyphen;returning function cannot contain a `return` statement with a non&hyphen;`void` operand&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;VISITOR,
    class t&lowbar;VARIANT,
    size&lowbar;t t&lowbar;INDEX&gt;
struct xref:BloombergLP/bslstl/Variant_Function-0b.adoc[Variant&lowbar;Function]&lt;void, t&lowbar;VISITOR, t&lowbar;VARIANT, t&lowbar;INDEX&gt;;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/Variant_Function-05/functionImpl.adoc[`functionImpl`] 
| Invoke the specified `visitor` on alternative `t&lowbar;INDEX` of `variant`&period;
|===



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