Apply visitor to the held TYPE value of this modifiable variant.
Declared in <bdlb_variant.h>
template<
class RET_TYPE,
class VISITOR>
RET_TYPE
apply(VISITOR& visitor);
If this variant is unset, a default constructed bslmf::Nil is passed to the visitor.
result of invoking visitor on the active alternative
| Name | Description |
|---|---|
| visitor | callable applied to the active alternative |