This component-private meta-function determines whether the specified TYPE template parameter takes a bslma::Allocator* constructor argument and, if so, whether that argument is at the end of the argument list or at the beginning of the argument list following an argument of type bsl::allocator_arg_t. This type derived from bsl::integral_constant<int, N> where N is the number of additional parameters required to pass an allocator to a constructor using the chosen idiom.
Declared in <bslstl_pair.h>
template<class TYPE>
struct Pair_BslmaIdiom
: bsl::conditional<!BloombergLP::bslma::UsesBslmaAllocator<TYPE>::value, Pair_BslmaIdiomNone, bsl::conditional<BloombergLP::bslmf::UsesAllocatorArgT<TYPE>::value, Pair_BslmaIdiomAllocatorArgT, Pair_BslmaIdiomAtEnd>::type>::type
| Name | Description |
|---|---|
bsl::conditional<!BloombergLP::bslma::UsesBslmaAllocator<TYPE>::value, Pair_BslmaIdiomNone, bsl::conditional<BloombergLP::bslmf::UsesAllocatorArgT<TYPE>::value, Pair_BslmaIdiomAllocatorArgT, Pair_BslmaIdiomAtEnd>::type>::type |