ECSM v0.2.0
LinearPool< T, DestroyItems >::ConstantIterator

Linear pool constant iterator class. More...

#include <linear-pool.hpp>

Public Types

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

Public Member Functions

 ConstantIterator (pointer ptr) noexcept
 
ConstantIteratoroperator= (const ConstantIterator &i) noexcept=default
 
ConstantIteratoroperator= (pointer ptr) noexcept
 
 operator bool () const noexcept
 
bool operator== (const ConstantIterator &i) const noexcept
 
bool operator!= (const ConstantIterator &i) const noexcept
 
ConstantIteratoroperator+= (const difference_type &m) noexcept
 
ConstantIteratoroperator-= (const difference_type &m) noexcept
 
ConstantIteratoroperator++ () noexcept
 
ConstantIteratoroperator-- () noexcept
 
ConstantIterator operator++ (int) noexcept
 
ConstantIterator operator-- (int) noexcept
 
ConstantIterator operator+ (const difference_type &m) noexcept
 
ConstantIterator operator- (const difference_type &m) noexcept
 
difference_type operator- (const ConstantIterator &i) noexcept
 
reference operator* () const noexcept
 
pointer operator-> () noexcept
 

Detailed Description

template<class T, bool DestroyItems>
struct ecsm::LinearPool< T, DestroyItems >::ConstantIterator

Linear pool constant iterator class.