[#bsl-visit-0de] = xref:bsl.adoc[bsl]::visit :relfileprefix: ../ :mrdocs: `visit` overloads == Synopses Declared in `<bslstl_variant.h>` Return the result of invoking `visitor` with the active alternative of `variant`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_VISITOR, class t_VARIANT> bsl::invoke_result<t_VISITOR&&, decltype(get<0>(BloombergLP::bslstl::Variant_ImpUtil:: asVariant(std::forward<t_VARIANT>(variant))))>::type xref:bsl/visit-0d1.adoc[visit]( t_VISITOR&& visitor, t_VARIANT&& variant); ---- [.small]#xref:bsl/visit-0d1.adoc[_» more..._]# Return the result of invoking `visitor` with the active alternative of `variant`, converted to `t_RET`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_RET, class t_VISITOR, class t_VARIANT> t_RET xref:bsl/visit-0f.adoc[visit]( t_VISITOR&& visitor, t_VARIANT&& variant); ---- [.small]#xref:bsl/visit-0f.adoc[_» more..._]# == Return Value * result of invoking `visitor` on the active alternative * result of invoking `visitor`, converted to `t_RET` == Parameters [cols="1,4"] |=== | Name| Description | *visitor* | callable to invoke on the active alternative | *variant* | variant whose active alternative is visited |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#