BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslstl::Variant_FunctionId< t_RET, t_VISITOR, t_VARIANT, t_ALT_TYPE > Struct Template Reference

#include <bslstl_variant.h>

Static Public Member Functions

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

Member Function Documentation

◆ functionImpl()

template<class t_RET , class t_VISITOR , class t_VARIANT , class t_ALT_TYPE >
static t_RET bslstl::Variant_FunctionId< t_RET, t_VISITOR, t_VARIANT, t_ALT_TYPE >::functionImpl ( t_VISITOR &  visitor,
t_VARIANT &  variant 
)
inlinestatic

This component-private function invokes the specified visitor with a bsl::in_place_index_t tag representing the index of the first occurrence of (template parameter) t_ALT_TYPE in the specified variant and the active alternative object of variant, implicitly converting the return type to (template parameter) t_RET.

Precondition
The behavior is undefined unless variant has an active alternative of type t_ALT_TYPE.
Note
Note that the index passed to the visitor might not be the index of the active alternative, if that alternative occurs multiple times in t_VARIANT.

The documentation for this struct was generated from the following file: