BloombergLP::bslalg::HasTrait

This meta-function evaluates to bsl::true_type if the (template parameter) TYPE has the (template parameter) TRAIT, and to bsl::false_type otherwise.

Synopsis

Declared in <bslalg_hastrait.h>

template<
    class TYPE,
    class TRAIT>
struct HasTrait
    : bsl::integral_constant<bool, TRAIT::template Metafunction<typename bsl::remove_cv<TYPE>::type>::value>

Base Classes

NameDescription
bsl::integral_constant<bool, TRAIT::template Metafunction<typename bsl::remove_cv<TYPE>::type>::value>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