#include "diplib.h"
dip::Range::Iterator class

An iterator for the range

Constructors, destructors, assignment and conversion operators

Iterator() defaulted
Default constructor
Iterator(dip::uint index, dip::sint step)
Constructor

Aliases

using iterator_category = std::forward_iterator_tag
Iterator category
using pointer = dip::sint const*
Type of pointer to value
using reference = dip::sint const&
Type of reference to value
using value_type = dip::uint
Type of value iterator references

Operators

auto operator!=(dip::Range::Iterator const& other) const -> bool
Inequality comparison
auto operator*() const -> dip::Range::Iterator::value_type
Dereference
auto operator++() -> dip::Range::Iterator&
Pre-increment
auto operator++(int ) -> dip::Range::Iterator
Post-increment
auto operator->() const -> dip::Range::Iterator::pointer
Dereference
auto operator==(dip::Range::Iterator const& other) const -> bool
Equality comparison

Alias documentation

using iterator_category = std::forward_iterator_tag

Iterator category

using value_type = dip::uint

Type of value iterator references

using reference = dip::sint const&

Type of reference to value

using pointer = dip::sint const*

Type of pointer to value

Function documentation

Iterator( ) defaulted

Default constructor

Iterator( dip::uint index, dip::sint step)

Constructor

dip::Range::Iterator& operator++( )

Pre-increment

dip::Range::Iterator operator++( int )

Post-increment

bool operator==( dip::Range::Iterator const& other) const

Equality comparison

bool operator!=( dip::Range::Iterator const& other) const

Inequality comparison