BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslstl::Variant_Function< 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_Function< 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 on the contained value of the specified variant, implicitly converting the return type to (template parameter) t_RET.

Precondition
The behavior is undefined if (template parameter) t_ALT_TYPE is not the type of the active alternative.

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