A library for working with phylogenetic and population genetic data.
v0.27.0
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 94 of file std.hpp.

Public Member Functions

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

Constructor & Destructor Documentation

◆ ArrowOperatorProxy()

ArrowOperatorProxy ( T const &  v)
inlineexplicit

Definition at line 97 of file std.hpp.

Member Function Documentation

◆ operator->()

T* operator-> ( ) const
inline

Definition at line 101 of file std.hpp.


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