LLVM  14.0.0git
Public Member Functions | List of all members
llvm::iterator_facade_base< DerivedT, IteratorCategoryT, T, DifferenceTypeT, PointerT, ReferenceT >::PointerProxy Class Reference

A proxy object for computing a pointer via indirecting a copy of a reference. More...

#include "llvm/ADT/iterator.h"

Public Member Functions

PointerT operator-> () const
 

Detailed Description

template<typename DerivedT, typename IteratorCategoryT, typename T, typename DifferenceTypeT = std::ptrdiff_t, typename PointerT = T *, typename ReferenceT = T &>
class llvm::iterator_facade_base< DerivedT, IteratorCategoryT, T, DifferenceTypeT, PointerT, ReferenceT >::PointerProxy

A proxy object for computing a pointer via indirecting a copy of a reference.

This is used in APIs which need to produce a pointer but for which the reference might be a temporary. The proxy preserves the reference internally and exposes the pointer via a arrow operator.

Definition at line 116 of file iterator.h.

Member Function Documentation

◆ operator->()

template<typename DerivedT , typename IteratorCategoryT , typename T , typename DifferenceTypeT = std::ptrdiff_t, typename PointerT = T *, typename ReferenceT = T &>
PointerT llvm::iterator_facade_base< DerivedT, IteratorCategoryT, T, DifferenceTypeT, PointerT, ReferenceT >::PointerProxy::operator-> ( ) const
inline

Definition at line 125 of file iterator.h.


The documentation for this class was generated from the following file: