A factory‐backed mutable view of an immutable set.
Synopsis
Declared in <llvm/ADT/ImmutableSet.h>
template<
typename ValT,
typename ValInfo = ImutContainerInfo<ValT>,
bool Canonicalize = true>
class ImmutableSetRef;
Description
Add and remove go through the associated factory without canonicalizing after each operation.
Type Aliases
Name |
Description |
The factory type used to allocate and update tree nodes. |
|
The underlying AVL tree type. |
|
Iterator yielding stored set elements in in‐order. |
|
The type of a stored set element. |
|
A reference to a stored set element. |
Member Functions
Name |
Description |
|
Construct from tree root |
Profiles this set for folding‐set hashing. |
|
Returns a new set containing all elements of this set plus |
|
Converts this mutable view to an |
|
Returns an iterator to the first element in in‐order traversal. |
|
Returns true if the set contains the specified value. |
|
Returns the end iterator for in‐order traversal. |
|
Returns the height of the AVL tree (0 if empty). |
|
Returns the tree root without changing its reference count. |
|
Return true if the set contains no elements. |
|
Return true if the set contains exactly one element. This method runs in constant time. |
|
Returns a new set containing all elements of this set except |
|
Checks that the AVL balancing and ordering invariants hold for this set. |
|
Compares two sets for structural equality (contents, not pointer identity). |
|
Compares two sets for structural inequality. |
Static Member Functions
Name |
Description |
Profiles |
|
Returns an empty set reference backed by factory |
Created with MrDocs