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

#include <bslma_allocatortraits.h>

Public Types

typedef bsl::integral_constant< bool, valuetype
 

Static Public Attributes

static const bool value
 

Detailed Description

template<class ALLOCATOR_TYPE>
struct bslma::AllocatorTraits_HasSelectOnCopyMethod< ALLOCATOR_TYPE >

This struct template provides a mechanism for determining whether a given (template parameter) ALLOCATOR_TYPE defines a const member function named select_on_container_copy_construction that takes no arguments and returns an ALLOCATOR_TYPE object by value. The static boolean value (nested type alias) is true (bsl::true_type) if ALLOCATOR_TYPE defines such a method, and false (bsl::false_type) otherwise.

Member Typedef Documentation

◆ type

template<class ALLOCATOR_TYPE >
typedef bsl::integral_constant<bool, value> bslma::AllocatorTraits_HasSelectOnCopyMethod< ALLOCATOR_TYPE >::type

Member Data Documentation

◆ value

template<class ALLOCATOR_TYPE >
const bool bslma::AllocatorTraits_HasSelectOnCopyMethod< ALLOCATOR_TYPE >::value
static
Initial value:
=
sizeof(match<ALLOCATOR_TYPE>(0)) == sizeof(yes_type)

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