barretenberg
Loading...
Searching...
No Matches
Public Member Functions | List of all members
RefArray< T, N >::iterator Class Reference

Nested iterator class for RefArray, based on indexing into the pointer array. Provides semantics similar to what would be expected if std::array<T&, N> was possible. More...

#include <ref_array.hpp>

Public Member Functions

 iterator (RefArray const *array, std::size_t pos)
 Constructs an iterator for a given RefArray object.
 
T & operator* () const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
bool operator== (iterator const &other) const
 
bool operator!= (iterator const &other) const
 

Detailed Description

template<typename T, std::size_t N>
class RefArray< T, N >::iterator

Nested iterator class for RefArray, based on indexing into the pointer array. Provides semantics similar to what would be expected if std::array<T&, N> was possible.

Constructor & Destructor Documentation

◆ iterator()

template<typename T , std::size_t N>
RefArray< T, N >::iterator::iterator ( RefArray const *  array,
std::size_t  pos 
)
inline

Constructs an iterator for a given RefArray object.

Parameters
arrayPointer to the RefArray object.
posThe starting position in the array.

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