UFO
ufo::ArrowProxy< T > Class Template Reference

Utility class used in overloads of operator-> in forward iterators. More...

#include <ArrowProxy.h>

Public Member Functions

 ArrowProxy (const T &ref)
 
T * operator-> ()
 

Private Attributes

ref_
 

Detailed Description

template<class T>
class ufo::ArrowProxy< T >

Utility class used in overloads of operator-> in forward iterators.

See e.g. A. O'Dwyer's blog, https://quuxplusone.github.io/blog/2019/02/06/arrow-proxy.

Definition at line 17 of file ArrowProxy.h.

Constructor & Destructor Documentation

◆ ArrowProxy()

template<class T >
ufo::ArrowProxy< T >::ArrowProxy ( const T &  ref)
inlineexplicit

Definition at line 19 of file ArrowProxy.h.

Member Function Documentation

◆ operator->()

template<class T >
T* ufo::ArrowProxy< T >::operator-> ( )
inline

Definition at line 23 of file ArrowProxy.h.

Member Data Documentation

◆ ref_

template<class T >
T ufo::ArrowProxy< T >::ref_
private

Definition at line 28 of file ArrowProxy.h.


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