F14 hash set that selects a value or vector layout based on element size.

Synopsis

Declared in <folly/container/F14Set.h>

template<
    typename Key,
    typename Hasher = f14::DefaultHasher<Key>,
    typename KeyEqual = f14::DefaultKeyEqual<Key>,
    typename Alloc = f14::DefaultAlloc<Key>>
class F14FastSet
    : public std::conditional_t<sizeof(Key) < 24, F14ValueSet<Key, Hasher, KeyEqual, Alloc>, /* implementation-defined */>

Base Classes

Name

Description

std::conditional_t<sizeof(Key) < 24, F14ValueSet<Key, Hasher, KeyEqual, Alloc>, /* implementation-defined */>

Member Functions

Name

Description

F14FastSet [constructor]

Constructs an empty set.

operator=

Replaces the contents with the elements of an initializer list.

swap

Swaps the contents with another set.

Using Declarations

Deduction Guides

Non-Member Functions

Name

Description

erase_if

Erases all elements of the set that satisfy the predicate.

operator!=

Returns whether two sets differ in their elements.

operator==

Returns whether two sets contain the same elements.

swap

Swaps the contents of two sets.

settings::freezeImmutables

Freezes immutable settings ‐ preventing subsequent mutation attempts. It's up to the caller to call this function after settings have been initialized.

Created with MrDocs