BloombergLP::bdlb::VariantImp::applyRaw

Apply visitor to the held value and return RET_TYPE.

Synopsis

Declared in <bdlb_variant.h>

template<
    class RET_TYPE,
    class VISITOR>
RET_TYPE
applyRaw(VISITOR& visitor) const;

Description

The behavior is undefined if this variant is unset.

Return Value

result of invoking visitor on the active alternative

Parameters

NameDescription
visitorcallable applied to the active alternative