[#BloombergLP-bdlb-VariantImp-apply-0fc] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp]::apply :relfileprefix: ../../../ :mrdocs: Same as the preceding overload, but for a `const` visitor. == Synopsis Declared in `<bdlb_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class RET_TYPE, class VISITOR, class TYPE> RET_TYPE apply( VISITOR const& visitor, TYPE const& defaultValue); ---- == Return Value result of invoking `visitor` on the active alternative == Parameters [cols="1,4"] |=== | Name| Description | *visitor* | callable applied to the active alternative | *defaultValue* | value passed to `visitor` when this variant is unset |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#