llvm::sys::path::reverse_iterator::ReferenceProxy

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.