cptr::detail::basic_unordered_map::basic_unordered_map

Constructors

Synopses

Declared in <cptr/unordered_map.hpp>

An empty map; allocates nothing.

basic_unordered_map() noexcept = default;
» more...

Copies the elements, the hash function, the key comparison, the maximum load factor and the bucket count, so the copy iterates in the same order. The keys are not hashed again: each node keeps its hash, and the copy goes bucket by bucket.

basic_unordered_map(basic_unordered_map const& other);
» more...

Move constructor

basic_unordered_map(basic_unordered_map&& other) noexcept;
» more...

An empty map with at least buckets buckets.

explicit
basic_unordered_map(
    size_type buckets,
    Hash const& hash = Hash(),
    KeyEqual const& eq = KeyEqual());
» more...

The elements of values; of equal keys, the first is kept.

basic_unordered_map(
    std::initializer_list<value_type> values,
    size_type buckets = 0,
    Hash const& hash = Hash(),
    KeyEqual const& eq = KeyEqual());
» more...

The elements of [first, last); of equal keys, the first is kept.]

template<std::input_iterator It>
basic_unordered_map(
    It first,
    It last,
    size_type buckets = 0,
    Hash const& hash = Hash(),
    KeyEqual const& eq = KeyEqual());
» more...