Trait indicating hash_map uses bslma allocators when _Alloc allows.

Synopsis

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>

Base Classes

Name

Description

bsl::is_convertible<Allocator*, _Alloc>

Meta‐function for detecting implicit convertibility between types.

Type Aliases

Name

Description

type

Alias for this integral_constant specialization.

value_type

Alias for the (template parameter) t_TYPE.

Member Functions

Name

Description

operator()

Return a copy of the template argument t_VALUE.

operator t_TYPE

Return a copy of the template argument t_VALUE.

Static Data Members

Name

Description

value

The compile‐time constant value of this metafunction.

Created with MrDocs