[#BloombergLP-bdlb-Variant17-applyRaw] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Variant17.adoc[Variant17]::applyRaw :relfileprefix: ../../../ :mrdocs: `applyRaw` overloads == Synopses Declared in `<bdlb_variant.h>` Apply the specified `visitor` to this modifiable variant by passing the value (of template parameter `TYPE`) this variant currently holds to the `visitor` object's `operator()`, and return the value returned by the `visitor`. The behavior is undefined if this variant is unset. Note that this method is selected only if the template parameter type `VISITOR` defines a `typedef` of `ResultType` in its public interface. Also note that this method is defined inline to work around a Windows compiler bug with SFINAE functions. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class VISITOR> VISITOR::ResultType xref:BloombergLP/bdlb/VariantImp/applyRaw-026.adoc[applyRaw](VISITOR& visitor) requires Variant_ReturnValueHelper<VISITOR>::value == 1; ---- [.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-026.adoc[_» more..._]# Apply the specified `visitor` to this variant by passing the value this variant currently holds to the `visitor` object's `operator()`, and return the value (of template parameter `RET_TYPE`) returned by the `visitor`. The behavior is undefined if this variant is unset. Note that this method is selected only if the template parameter type `VISITOR` defines a `typedef` of `ResultType` in its public interface. Also note that this method is defined inline to work around a Windows compiler bug with SFINAE functions. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class VISITOR> VISITOR::ResultType xref:BloombergLP/bdlb/VariantImp/applyRaw-0b8.adoc[applyRaw](VISITOR& visitor) const requires Variant_ReturnValueHelper<VISITOR>::value == 1; ---- [.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-0b8.adoc[_» more..._]# Apply the specified `visitor` to this modifiable variant by passing the value (of template parameter `TYPE`) this variant currently holds to the `visitor` object's `operator()`, and return the value returned by the `visitor`. The behavior is undefined if this variant is unset. Note that this method is selected only if the template parameter type `VISITOR` defines a `typedef` of `ResultType` in its public interface. Also note that this method is defined inline to work around a Windows compiler bug with SFINAE functions. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class VISITOR> VISITOR::ResultType xref:BloombergLP/bdlb/VariantImp/applyRaw-01.adoc[applyRaw](VISITOR const& visitor) requires Variant_ReturnValueHelper<VISITOR>::value == 1; ---- [.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-01.adoc[_» more..._]# Apply the specified `visitor` to this variant by passing the value this variant currently holds to the `visitor` object's `operator()`, and return the value returned by the `visitor`. The behavior is undefined if this variant is unset. Note that this method is selected only if the template parameter type `VISITOR` defines a `typedef` of `ResultType` in its public interface. Also note that this method is defined inline to work around a Windows compiler bug with SFINAE functions. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class VISITOR> VISITOR::ResultType xref:BloombergLP/bdlb/VariantImp/applyRaw-0c9.adoc[applyRaw](VISITOR const& visitor) const requires Variant_ReturnValueHelper<VISITOR>::value == 1; ---- [.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-0c9.adoc[_» more..._]# Apply the specified `visitor` to this modifiable variant by passing the value this variant currently holds to the `visitor` object's `operator()`, and return the value (of template parameter `RET_TYPE`) returned by the `visitor`. The behavior is undefined if this variant is unset. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class RET_TYPE, class VISITOR> RET_TYPE xref:BloombergLP/bdlb/VariantImp/applyRaw-0c1.adoc[applyRaw](VISITOR& visitor); ---- [.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-0c1.adoc[_» more..._]# Apply the specified `visitor` to this variant by passing the value this variant currently holds to the `visitor` object's `operator()`, and return the value (of template parameter `RET_TYPE`) returned by the `visitor`. The behavior is undefined if this variant is unset. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class RET_TYPE, class VISITOR> RET_TYPE xref:BloombergLP/bdlb/VariantImp/applyRaw-0bc.adoc[applyRaw](VISITOR& visitor) const; ---- [.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-0bc.adoc[_» more..._]# Same as the preceding overload, but for a `const` visitor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class RET_TYPE, class VISITOR> RET_TYPE xref:BloombergLP/bdlb/VariantImp/applyRaw-0c8.adoc[applyRaw](VISITOR const& visitor); ---- [.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-0c8.adoc[_» more..._]# Same as the preceding overload, but for a `const` visitor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class RET_TYPE, class VISITOR> RET_TYPE xref:BloombergLP/bdlb/VariantImp/applyRaw-06.adoc[applyRaw](VISITOR const& visitor) const; ---- [.small]#xref:BloombergLP/bdlb/VariantImp/applyRaw-06.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#