Apply visitor to the held value of this variant.

Synopsis

Declared in <bdlb_variant.h>

template<class VISITOR>
void
applyRaw(VISITOR& visitor) const
requires Variant_ReturnValueHelper<VISITOR>::value == 0;

Description

This method does not return a value. The behavior is undefined if this variant is unset. Note that this method is selected only if the template parameter type VISITOR does not define a typedef of ResultType in its public interface. Also note that this method is defined inline to work around a Windows compiler bug with SFINAE functions.

Parameters

Name

Description

visitor

callable applied to the active alternative

Created with MrDocs