visit overloads
Synopses
Declared in <bslstl_variant.h>
Return the result of invoking visitor with the active alternative of variant.
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
visit(
t_VISITOR&& visitor,
t_VARIANT&& variant);
Return the result of invoking visitor with the active alternative of variant, converted to t_RET.
template<
class t_RET,
class t_VISITOR,
class t_VARIANT>
t_RET
visit(
t_VISITOR&& visitor,
t_VARIANT&& variant);
Return Value
-
result of invoking
visitoron the active alternative -
result of invoking
visitor, converted tot_RET
Parameters
Name |
Description |
visitor |
callable to invoke on the active alternative |
variant |
variant whose active alternative is visited |
Created with MrDocs