Random‐access iterator over switch cases.

Synopsis

Declared in <llvm/IR/Instructions.h>

Base Classes

Name

Description

iterator_facade_base<CaseIteratorImpl<CaseHandleT>, std::random_access_iterator_tag, CaseHandleT 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

CaseIteratorImpl [constructor]

Constructors

operator*

Return the case handle for the current iterator position.

operator+

Advance the iterator by n and return the result.

operator++

Increment operators

operator+=

Advance this iterator by N cases.

operator‐

Subtraction operators

operator‐‐

Decrement operators

operator‐=

Move this iterator back by N cases.

operator‐>

Return a proxy pointer to the current element.

operator[]

Return a proxy to the element at offset n.

operator CaseIteratorImpl<ConstCaseHandle>

Convert to the const case iterator type.

operator==

Return true if this iterator refers to the same case as RHS.

operator<

Return true if this iterator precedes RHS.

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.

Static Member Functions

Name

Description

fromSuccessorIndex

Initialize an iterator from successor index SuccessorIndex of SI.

Protected Types

Name

Description

PointerProxy

Proxy that yields a pointer from a copied reference.

ReferenceProxy

Proxy that yields a reference from a copied iterator.

Non-Member Functions

Name

Description

::llvm::operator+

Return an iterator n positions after i.

Created with MrDocs