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

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

#include <ref_vector.hpp>

Public Member Functions

 iterator (RefVector const *vector, std::size_t pos)
 Constructs an iterator for a given RefVector 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>
class RefVector< T >::iterator

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

Constructor & Destructor Documentation

◆ iterator()

template<typename T >
RefVector< T >::iterator::iterator ( RefVector const *  vector,
std::size_t  pos 
)
inline

Constructs an iterator for a given RefVector object.

Parameters
vectorPointer to the RefVector object.
posThe starting position in the vector.

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