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
Name |
Description |
Metafunction representing a compile‐time constant of the specified (template parameter) |
Type Aliases
Name |
Description |
Alias for this |
|
Member Functions
Name |
Description |
Return a copy of the template argument |
|