Constructors
Synopses
Declared in <absl/container/linked_hash_set.h>
Constructs an empty set.
Copy constructor.
linked_hash_set(linked_hash_set const& other);
Move constructor.
linked_hash_set(linked_hash_set&& other) noexcept;
Constructs an empty set with the given allocator.
explicit
linked_hash_set(allocator_type const& alloc);
Constructs an empty set with the given reservation size and allocator.
linked_hash_set(
size_t reservation_size,
allocator_type const& alloc);
Constructs a set from an initializer list.
linked_hash_set(
std::initializer_list<key_type> init,
allocator_type const& alloc);
Copy constructor using the given allocator.
linked_hash_set(
linked_hash_set const& other,
allocator_type const& alloc);
Move constructor using the given allocator.
linked_hash_set(
linked_hash_set&& other,
allocator_type const& alloc);
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);
Constructs a set from an initializer list.
linked_hash_set(
std::initializer_list<key_type> init,
size_t reservation_size,
allocator_type const& alloc);
Constructs a set from the range [first, last)].
template<class InputIt>
linked_hash_set(
InputIt first,
InputIt last,
allocator_type const& alloc);
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());
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);
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);
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());
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);
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());
Parameters
Name |
Description |
other |
The set to copy from. |
alloc |
The allocator to use. |
reservation_size |
The number of elements to reserve space for. |
init |
The initializer list of elements. |
hash |
The hash functor to use. |
first |
Iterator to the first element in the range. |
last |
Iterator past the last element in the range. |
eq |
The key equality functor to use. |
Created with MrDocs