BloombergLP::bdlc::FlatHashMap::FlatHashMap

Same as the preceding overload, also using the specified hash.

Synopsis

Declared in <bdlc_flathashmap.h>

template<class INPUT_ITERATOR>
FlatHashMap(
    INPUT_ITERATOR first,
    INPUT_ITERATOR last,
    std::size_t capacity,
    HASH const& hash,
    bslma::Allocator* basicAllocator = 0);

Parameters

NameDescription
firstbeginning of the input range
lastend of the input range (exclusive)
capacityminimum initial capacity of the underlying array
hashhash functor used for keys
basicAllocatorallocator used to supply memory