Quick Links: |
#include <bslma_allocatortraits.h>
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 |
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
typedef bsl::integral_constant<bool, value> bslma::AllocatorTraits_HasSelectOnCopyMethod< ALLOCATOR_TYPE >::type |
const bool bslma::AllocatorTraits_HasSelectOnCopyMethod< ALLOCATOR_TYPE >::value [static] |
sizeof(match<ALLOCATOR_TYPE>(0)) == sizeof(yes_type)