absl::linked_hash_set::linked_hash_set

Constructors

Synopses

Declared in <absl/container/linked_hash_set.h>

Constructs an empty set.

linked_hash_set();
» more...

Copy constructor.

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

Move constructor.

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

Constructs an empty set with the given allocator.

explicit
linked_hash_set(allocator_type const& alloc);
» more...

Constructs an empty set with the given reservation size and allocator.

linked_hash_set(
    size_t reservation_size,
    allocator_type const& alloc);
» more...

Constructs a set from an initializer list.

linked_hash_set(
    std::initializer_list<key_type> init,
    allocator_type const& alloc);
» more...

Copy constructor using the given allocator.

linked_hash_set(
    linked_hash_set const& other,
    allocator_type const& alloc);
» more...

Move constructor using the given allocator.

linked_hash_set(
    linked_hash_set&& other,
    allocator_type const& alloc);
» more...

Constructs an empty set with the given reservation size, hash, and allocator.

linked_hash_set(
    size_t reservation_size,
    hasher const& hash,
    allocator_type const& alloc);
» more...

Constructs a set from an initializer list.

linked_hash_set(
    std::initializer_list<key_type> init,
    size_t reservation_size,
    allocator_type const& alloc);
» more...

Constructs a set from the range [first, last)].

template<class InputIt>
linked_hash_set(
    InputIt first,
    InputIt last,
    allocator_type const& alloc);
» more...

Constructs an empty set with the given reservation size and functors.

explicit
linked_hash_set(
    size_t reservation_size,
    hasher const& hash = hasher(),
    key_equal const& eq = key_equal(),
    allocator_type const& alloc = allocator_type());
» more...

Constructs a set from an initializer list.

linked_hash_set(
    std::initializer_list<key_type> init,
    size_t reservation_size,
    hasher const& hash,
    allocator_type const& alloc);
» more...

Constructs a set from the range [first, last)].

template<class InputIter>
linked_hash_set(
    InputIter first,
    InputIter last,
    size_t reservation_size,
    allocator_type const& alloc);
» more...

Constructs a set from an initializer list.

linked_hash_set(
    std::initializer_list<key_type> init,
    size_t reservation_size = 0,
    hasher const& hash = hasher(),
    key_equal const& eq = key_equal(),
    allocator_type const& alloc = allocator_type());
» more...

Constructs a set from the range [first, last)].

template<class InputIter>
linked_hash_set(
    InputIter first,
    InputIter last,
    size_t reservation_size,
    hasher const& hash,
    allocator_type const& alloc);
» more...

Constructs a set from the range [first, last)].

template<class InputIt>
linked_hash_set(
    InputIt first,
    InputIt last,
    size_t reservation_size = 0,
    hasher const& hash = hasher(),
    key_equal const& eq = key_equal(),
    allocator_type const& alloc = allocator_type());
» more...

Parameters

NameDescription
otherThe set to copy from.
allocThe allocator to use.
reservation_sizeThe number of elements to reserve space for.
initThe initializer list of elements.
hashThe hash functor to use.
firstIterator to the first element in the range.
lastIterator past the last element in the range.
eqThe key equality functor to use.