tenno 0.1.0
Loading...
Searching...
No Matches
tenno::array< T, N >::const_iterator Struct Reference

A const iterator to iterate over the array. More...

#include <array.hpp>

Public Types

using iterator_category = std::forward_iterator_tag
 
using difference_type = std::ptrdiff_t
 
using value_type = T
 
using pointer = T *
 
using reference = T &
 

Public Member Functions

constexpr const_iterator (const tenno::array< T, N > &array_in, const tenno::size end) noexcept
 
constexpr const_iteratoroperator++ () noexcept
 
constexpr const_iterator operator++ (int) noexcept
 
constexpr bool operator== (const const_iterator &other) const noexcept
 
constexpr bool operator!= (const const_iterator &other) const noexcept
 
constexpr T operator* () const noexcept
 

Data Fields

const tenno::array< T, N > & array
 
tenno::size index
 

Detailed Description

template<typename T, tenno::size N>
struct tenno::array< T, N >::const_iterator

A const iterator to iterate over the array.

Definition at line 389 of file array.hpp.

Member Typedef Documentation

◆ difference_type

template<typename T , tenno::size N>
using tenno::array< T, N >::const_iterator::difference_type = std::ptrdiff_t

Definition at line 392 of file array.hpp.

◆ iterator_category

template<typename T , tenno::size N>
using tenno::array< T, N >::const_iterator::iterator_category = std::forward_iterator_tag

Definition at line 391 of file array.hpp.

◆ pointer

template<typename T , tenno::size N>
using tenno::array< T, N >::const_iterator::pointer = T *

Definition at line 394 of file array.hpp.

◆ reference

template<typename T , tenno::size N>
using tenno::array< T, N >::const_iterator::reference = T &

Definition at line 395 of file array.hpp.

◆ value_type

template<typename T , tenno::size N>
using tenno::array< T, N >::const_iterator::value_type = T

Definition at line 393 of file array.hpp.

Constructor & Destructor Documentation

◆ const_iterator()

template<typename T , tenno::size N>
tenno::array< T, N >::const_iterator::const_iterator ( const tenno::array< T, N > & array_in,
const tenno::size end )
inlineexplicitconstexprnoexcept

Definition at line 400 of file array.hpp.

Member Function Documentation

◆ operator!=()

template<typename T , tenno::size N>
bool tenno::array< T, N >::const_iterator::operator!= ( const const_iterator & other) const
inlineconstexprnoexcept

Definition at line 424 of file array.hpp.

◆ operator*()

template<typename T , tenno::size N>
T tenno::array< T, N >::const_iterator::operator* ( ) const
inlineconstexprnoexcept

Definition at line 429 of file array.hpp.

◆ operator++() [1/2]

template<typename T , tenno::size N>
const_iterator & tenno::array< T, N >::const_iterator::operator++ ( )
inlineconstexprnoexcept

Definition at line 406 of file array.hpp.

◆ operator++() [2/2]

template<typename T , tenno::size N>
const_iterator tenno::array< T, N >::const_iterator::operator++ ( int )
inlineconstexprnoexcept

Definition at line 412 of file array.hpp.

◆ operator==()

template<typename T , tenno::size N>
bool tenno::array< T, N >::const_iterator::operator== ( const const_iterator & other) const
inlineconstexprnoexcept

Definition at line 419 of file array.hpp.

Field Documentation

◆ array

template<typename T , tenno::size N>
const tenno::array<T, N>& tenno::array< T, N >::const_iterator::array

Definition at line 397 of file array.hpp.

◆ index

template<typename T , tenno::size N>
tenno::size tenno::array< T, N >::const_iterator::index

Definition at line 398 of file array.hpp.


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