Quick Links:

bal | bbl | bdl | bsl

Classes | Public Types | Static Public Attributes

bslma::AllocatorTraits_HasSelectOnCopyMethod< ALLOCATOR_TYPE > Struct Template Reference

#include <bslma_allocatortraits.h>

List of all members.

Classes

struct  MatchType
struct  MethodAlias
struct  no_type
struct  yes_type

Public Types

typedef bsl::integral_constant
< bool, value
type

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.

See Component bslma_allocatortraits


Member Typedef Documentation

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

Member Data Documentation

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: