BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslma::AllocatorTraits_HasIsAlwaysEqual< ALLOC > Struct Template Reference

#include <bslma_allocatortraits.h>

Public Types

typedef bsl::integral_constant< bool, valuetype
 

Static Public Attributes

static const bool value = sizeof(match<ALLOC>(0)) == sizeof(yes_type)
 

Detailed Description

template<class ALLOC>
struct bslma::AllocatorTraits_HasIsAlwaysEqual< ALLOC >

This struct template provides a mechanism for determining whether a given (template parameter) ALLOCATOR_TYPE defines a nested alias named is_always_equal. The static boolean member value (nested alias named type) is true (bsl::true_type) if ALLOCATOR_TYPE defines such an alias, and false (bsl::false_type) otherwise.

Member Typedef Documentation

◆ type

template<class ALLOC >
typedef bsl::integral_constant<bool, value> bslma::AllocatorTraits_HasIsAlwaysEqual< ALLOC >::type

Member Data Documentation

◆ value

template<class ALLOC >
const bool bslma::AllocatorTraits_HasIsAlwaysEqual< ALLOC >::value = sizeof(match<ALLOC>(0)) == sizeof(yes_type)
static

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