Invoke visitor with an index tag and the active alternative.

Synopsis

Declared in <bslstl_variant.h>

static
t_RET
functionImpl(
    t_VISITOR&& visitor,
    t_VARIANT&& variant);

Description

This component‐private function invokes the specified visitor with a bsl::in_place_index_t tag representing the value of (template parameter) t_INDEX and the active alternative object of the specified variant, implicitly converting the return type to (template parameter) t_RET. The behavior is undefined unless t_INDEX is the index of the active alternative.

Return Value

result of invoking visitor, converted to t_RET

Parameters

Name

Description

visitor

callable to invoke with the index tag and alternative

variant

variant whose active alternative is visited

Created with MrDocs