Manifold 1.0
Robust computational geometry
 
Loading...
Searching...
No Matches
CountingIterator< T > Struct Template Reference

Public Types

using pointer = void
 
using reference = T
 
using difference_type = std::make_signed_t< T >
 
using value_type = T
 
using iterator_category = std::random_access_iterator_tag
 

Public Member Functions

constexpr CountingIterator (T counter)
 
constexpr value_type operator* () const
 
constexpr value_type operator[] (T i) const
 
CountingIteratoroperator++ ()
 
CountingIterator operator++ (int)
 
CountingIteratoroperator-- ()
 
CountingIterator operator-- (int)
 
constexpr CountingIterator operator+ (T n) const
 
CountingIteratoroperator+= (T n)
 
constexpr CountingIterator operator- (T n) const
 
CountingIteratoroperator-= (T n)
 
constexpr operator CountingIterator< const T > () const
 

Friends

constexpr friend bool operator== (CountingIterator a, CountingIterator b)
 
constexpr friend bool operator!= (CountingIterator a, CountingIterator b)
 
constexpr friend bool operator< (CountingIterator a, CountingIterator b)
 
constexpr friend difference_type operator- (CountingIterator a, CountingIterator b)