Proxy that yields a reference from a copied iterator.

Synopsis

Declared in <llvm/ADT/iterator.h>

class ReferenceProxy;

Description

Used in APIs which need to produce a reference via indirection but for which the iterator object might be a temporary. The proxy preserves the iterator internally and exposes the indirected reference via a conversion operator.

Member Functions

Name

Description

operator ReferenceT

Convert the proxied reference to its value.

Friends

Name

Description

llvm::iterator_facade_base

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

Created with MrDocs