[#BloombergLP-bdlb-Variant15-applyRaw]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Variant15.adoc[Variant15]::applyRaw
:relfileprefix: ../../../
:mrdocs:

`applyRaw` overloads

== Synopses

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

Apply `visitor` to the held `TYPE` value of this modifiable variant&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class VISITOR&gt;
VISITOR::ResultType
xref:BloombergLP/bdlb/VariantImp/applyRaw-026.adoc[applyRaw](VISITOR& visitor)
requires Variant&lowbar;ReturnValueHelper&lt;VISITOR&gt;&colon;&colon;value &equals;&equals; 1;
----

[.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-026.adoc[_» more&period;&period;&period;_]#

Apply `visitor` to the held value and return `RET&lowbar;TYPE`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class VISITOR&gt;
VISITOR::ResultType
xref:BloombergLP/bdlb/VariantImp/applyRaw-0b8.adoc[applyRaw](VISITOR& visitor) const
requires Variant&lowbar;ReturnValueHelper&lt;VISITOR&gt;&colon;&colon;value &equals;&equals; 1;
----

[.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-0b8.adoc[_» more&period;&period;&period;_]#

Apply `visitor` to the held `TYPE` value of this modifiable variant&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class VISITOR&gt;
VISITOR::ResultType
xref:BloombergLP/bdlb/VariantImp/applyRaw-01.adoc[applyRaw](VISITOR const& visitor)
requires Variant&lowbar;ReturnValueHelper&lt;VISITOR&gt;&colon;&colon;value &equals;&equals; 1;
----

[.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-01.adoc[_» more&period;&period;&period;_]#

Apply `visitor` to the held value and return its result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class VISITOR&gt;
VISITOR::ResultType
xref:BloombergLP/bdlb/VariantImp/applyRaw-0c9.adoc[applyRaw](VISITOR const& visitor) const
requires Variant&lowbar;ReturnValueHelper&lt;VISITOR&gt;&colon;&colon;value &equals;&equals; 1;
----

[.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-0c9.adoc[_» more&period;&period;&period;_]#

Apply `visitor` to the held alternative without validity checks&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class RET&lowbar;TYPE,
    class VISITOR&gt;
RET&lowbar;TYPE
xref:BloombergLP/bdlb/VariantImp/applyRaw-0c1.adoc[applyRaw](VISITOR& visitor);
----

[.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-0c1.adoc[_» more&period;&period;&period;_]#

Apply `visitor` to the held value and return `RET&lowbar;TYPE`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class RET&lowbar;TYPE,
    class VISITOR&gt;
RET&lowbar;TYPE
xref:BloombergLP/bdlb/VariantImp/applyRaw-0bc.adoc[applyRaw](VISITOR& visitor) const;
----

[.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-0bc.adoc[_» more&period;&period;&period;_]#

Apply a const `visitor` to the held alternative without checks&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class RET&lowbar;TYPE,
    class VISITOR&gt;
RET&lowbar;TYPE
xref:BloombergLP/bdlb/VariantImp/applyRaw-0c8.adoc[applyRaw](VISITOR const& visitor);
----

[.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-0c8.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, but for a `const` visitor&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class RET&lowbar;TYPE,
    class VISITOR&gt;
RET&lowbar;TYPE
xref:BloombergLP/bdlb/VariantImp/applyRaw-06.adoc[applyRaw](VISITOR const& visitor) const;
----

[.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-06.adoc[_» more&period;&period;&period;_]#

== Return Value

result of invoking `visitor` on the active alternative

== Parameters

[cols="1,4"]
|===
| Name| Description
| *visitor*
| callable applied to the active alternative
|===


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