A toolkit for working with phylogenetic data.
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 81 of file std.hpp.

Public Member Functions

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

Constructor & Destructor Documentation

◆ ArrowOperatorProxy()

ArrowOperatorProxy ( T const &  v)

Definition at line 84 of file std.hpp.

Member Function Documentation

◆ operator->()

T* operator-> ( ) const

Definition at line 88 of file std.hpp.

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