BloombergLP::bdlb::Variant_ReturnValueHelper

This struct is a component-private meta-function. Do not use. This meta-function checks whether the template parameter type VISITOR has the member ResultType defined using "SFINAE" (Substitution Failure Is Not An Error). A value of true indicates VISITOR::ResultType exists, and false otherwise.

Synopsis

Declared in <bdlb_variant.h>

template<class VISITOR>
struct Variant_ReturnValueHelper
    : bsl::integral_constant<bool, sizeof (Variant_ReturnValueHelper_Matcher::match<VISITOR>(0)) == sizeof(Variant_ReturnValueHelper_YesType)>

Base Classes

NameDescription
bsl::integral_constant<bool, sizeof (Variant_ReturnValueHelper_Matcher::match<VISITOR>(0)) == sizeof(Variant_ReturnValueHelper_YesType)>Metafunction representing a compile-time constant of the specified (template parameter) t_TYPE with the specified (template parameter) t_VALUE.

Type Aliases

NameDescription
type Alias for this integral_constant specialization.
value_type

Member Functions

NameDescription
operator() Return a copy of the template argument t_VALUE.
operator value_type

Static Data Members

Name
value