A toolkit for working with phylogenetic data.
v0.20.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ArrowOperatorProxy< T > Class Template Reference

#include <genesis/utils/core/std.hpp>

Detailed Description

template<typename T>
class genesis::utils::ArrowOperatorProxy< T >

Proxy class to hold an element accessible via arrow operator.

This is useful for implementing an iterator whose arrow operator would return an r-value. Inspired by https://stackoverflow.com/a/26496041/4184258

Definition at line 80 of file std.hpp.

Public Member Functions

 ArrowOperatorProxy (T const &t)
 
T * operator-> () const
 

Constructor & Destructor Documentation

ArrowOperatorProxy ( T const &  t)
inline

Definition at line 83 of file std.hpp.

Member Function Documentation

T* operator-> ( ) const
inline

Definition at line 87 of file std.hpp.


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