Apply visitor to the held alternative without validity checks.

Synopsis

Declared in <bdlb_variant.h>

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

Description

Apply the specified visitor to this modifiable variant by passing the value this variant currently holds to the visitor object's operator(), and return the value (of template parameter RET_TYPE) returned by the visitor. The behavior is undefined if this variant is unset.

Return Value

result of invoking visitor on the active alternative

Parameters

Name

Description

visitor

callable applied to the active alternative

Created with MrDocs