[#BloombergLP-bdlb-VariantImp-apply-06b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp]::apply :relfileprefix: ../../../ :mrdocs: Apply the specified `visitor` to this variant by passing the value this variant currently holds to the `visitor` object's `operator()`. This method does not return a value. If this variant is unset, a default constructed `bslmf::Nil` is passed to the `visitor`. Note that this method is selected only if the template parameter type `VISITOR` does not define 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. == Synopsis Declared in `<bdlb_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class VISITOR> void apply(VISITOR const& visitor) const requires Variant_ReturnValueHelper<VISITOR>::value == 0; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#