Trait indicating hash_map uses bslma allocators when _Alloc allows.
Declared in <bslstp_hashmap.h>
template<
class _Key,
class _Tp,
class _HashFcn,
class _EqualKey,
class _Alloc>
struct UsesBslmaAllocator<bsl::hash_map<_Key, _Tp, _HashFcn, _EqualKey, _Alloc>>
: bsl::is_convertible<Allocator*, _Alloc>
| Name | Description |
|---|---|
bsl::is_convertible<Allocator*, _Alloc> | Meta-function for detecting implicit convertibility between types. |
| Name | Description |
|---|---|
type | Alias for this integral_constant specialization. |
value_type | Alias for the (template parameter) t_TYPE. |
| Name | Description |
|---|---|
operator() | Return a copy of the template argument t_VALUE. |
operator t_TYPE | Return a copy of the template argument t_VALUE. |
| Name | Description |
|---|---|
value | The compile-time constant value of this metafunction. |