This meta-function evaluates to bsl::true_type if the (template parameter) TYPE has the (template parameter) TRAIT, and to bsl::false_type otherwise.
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>
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
type | Alias for this integral_constant specialization. |
value_type |
| Name | Description |
|---|---|
operator() | Return a copy of the template argument t_VALUE. |
operator value_type |
| Name |
|---|
value |