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 |
|
Member Functions
Name |
Description |
|
Constructs an empty set. |
Replaces the contents with the elements of an initializer list. |
|
Swaps the contents with another set. |
Using Declarations
Deduction Guides
Name |
Description |
Deduction guide for F14FastSet. |
|
Deduction guide for F14FastSet. |
|
|
Deduction guide for F14FastSet. |
|
Deduction guide for F14FastSet. |
Deduction guide for F14FastSet. |
|
Deduction guide for F14FastSet. |
Non-Member Functions
Name |
Description |
Erases all elements of the set that satisfy the predicate. |
|
Returns whether two sets differ in their elements. |
|
Returns whether two sets contain the same elements. |
|
Swaps the contents of two sets. |
|
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