SmallSetIterator ‐ This class implements a const_iterator for SmallSet by delegating to the underlying SmallVector or Set iterators.

Synopsis

Declared in <llvm/ADT/SmallSet.h>

template<
    typename T,
    unsigned int N,
    typename C>
class SmallSetIterator
    : public iterator_facade_base<SmallSetIterator<T, N, C>, std::forward_iterator_tag, T, std::ptrdiff_t, T const*, T const&>

Base Classes

Name

Description

iterator_facade_base<SmallSetIterator<T, N, C>, std::forward_iterator_tag, T, std::ptrdiff_t, T const*, T const&>

CRTP base class which implements the entire standard iterator facade in terms of a minimal subset of the interface.

Type Aliases

Name

Description

difference_type

Signed type used to express the distance between iterators.

iterator_category

Iterator category tag for this facade.

pointer

Pointer type returned by the iterator.

reference

Reference type returned by the iterator.

value_type

Value type produced by the iterator.

Enums

Name

Description

Unnamed enum

Capability flags for the iterator category.

Member Functions

Name

Description

SmallSetIterator [constructor]

Constructors

~SmallSetIterator [destructor]

Destroy the active underlying iterator.

operator=

Assignment operators

operator*

Return a const reference to the current element.

operator+

Advance the iterator by n and return the result.

operator++

Increment operators

operator‐

Retreat the iterator by n and return the result.

operator‐‐

Decrement operators

operator‐>

Return a proxy pointer to the current element.

operator[]

Return a proxy to the element at offset n.

operator==

Return true if both iterators refer to the same element.

operator<=

Return true if this iterator is less than or equal to RHS.

operator>

Return true if this iterator is greater than RHS.

operator>=

Return true if this iterator is greater than or equal to RHS.

Data Members

Name

Description

SetIter [variant member]

Iterator into the large‐mode std::set storage.

VecIter [variant member]

Iterator into the small‐mode SmallVector storage.

Protected Types

Name

Description

PointerProxy

Proxy that yields a pointer from a copied reference.

ReferenceProxy

Proxy that yields a reference from a copied iterator.

Created with MrDocs