Quick Links:

bal | bbl | bdl | bsl

Public Types

bslmf::DetectNestedTrait_Imp< t_TYPE, t_TRAIT, BSLMF_VOIDTYPE(int t_TYPE::*)> Struct Template Reference

#include <bslmf_detectnestedtrait.h>

List of all members.

Public Types

typedef bsl::integral_constant
< bool, k_VALUE > 
type

Detailed Description

template<class t_TYPE, template< class > class t_TRAIT>
struct bslmf::DetectNestedTrait_Imp< t_TYPE, t_TRAIT, BSLMF_VOIDTYPE(int t_TYPE::*)>

This template specialization detects whether the specified t_TRAIT parameter is associated with the specified t_TYPE parameter, which is constrained to be a class type, using the nested type trait mechanism. The nested type is an alias for bsl::true_type if and only if t_TYPE is associated with t_TRAIT using the BSLMF_NESTED_TRAIT_DECLARATION macro, and for bsl::false_type otherwise. Note that nested trait associations are not inherited by derived classes, which must be associated in their own right.

See Component bslmf_detectnestedtrait


Member Typedef Documentation

template<class t_TYPE , template< class > class t_TRAIT>
typedef bsl::integral_constant<bool, k_VALUE> bslmf::DetectNestedTrait_Imp< t_TYPE, t_TRAIT, BSLMF_VOIDTYPE(int t_TYPE::*)>::type

The documentation for this struct was generated from the following file: