class
#include <bn_deque.h>
const_iterator Const iterator.
Public types
-
using value_type = ideque::
value_type - Value type alias.
-
using size_type = ideque::
size_type - Size type alias.
-
using difference_type = ideque::
difference_type - Difference type alias.
-
using reference = ideque::
const_reference - Reference alias.
-
using pointer = ideque::
const_pointer - Pointer alias.
- using iterator_category = random_access_iterator_tag
- Iterator category alias.
Constructors, destructors, conversion operators
- const_iterator() defaulted
- Default constructor.
- const_iterator(const iterator& it)
- Constructor.
Public functions
-
auto operator++() -> const_
iterator& - Increments the position.
-
auto operator++(int) -> const_
iterator - Increments the position.
-
auto operator+=(size_
type value) -> const_ iterator& - Increments the position the given number of times.
-
auto operator--() -> const_
iterator& - Decrements the position.
-
auto operator--(int) -> const_
iterator - Decrements the position.
-
auto operator-=(size_
type value) -> const_ iterator& - Decrements the position the given number of times.
-
auto operator*() const -> const_
reference - Returns a const reference to the pointed value.
-
auto operator->() const -> const_
pointer - Returns a const pointer to the pointed value.
-
auto operator[](size_
type offset) const -> const_ reference - Returns a const reference to the pointed value by this iterator incremented offset times.
Friends
-
auto operator+(const const_
iterator& it, size_ type offset) -> const_ iterator - Returns the iterator it incremented offset times.
-
auto operator+(size_
type offset, const const_ iterator& it) -> const_ iterator - Returns the iterator it incremented offset times.
-
auto operator-(const const_
iterator& it, size_ type offset) -> const_ iterator - Returns the iterator it decremented offset times.
-
auto operator-(size_
type offset, const const_ iterator& it) -> const_ iterator - Returns the iterator it decremented offset times.
-
auto operator+(const const_
iterator& a, const const_ iterator& b) -> size_ type - Returns the sum of a and b.
-
auto operator-(const const_
iterator& a, const const_ iterator& b) -> size_ type - Returns b subtracted from a.
-
auto operator==(const const_
iterator& a, const const_ iterator& b) -> bool - Equal operator.
-
auto operator!=(const const_
iterator& a, const const_ iterator& b) -> bool - Not equal operator.
-
auto operator<(const const_
iterator& a, const const_ iterator& b) -> bool - Less than operator.
-
auto operator>(const const_
iterator& a, const const_ iterator& b) -> bool - Greater than operator.
-
auto operator<=(const const_
iterator& a, const const_ iterator& b) -> bool - Less than or equal operator.
-
auto operator>=(const const_
iterator& a, const const_ iterator& b) -> bool - Greater than or equal operator.
Function documentation
bn:: ideque:: const_iterator:: const_iterator(const iterator& it)
Constructor.
Parameters | |
---|---|
it | Non const iterator. |
const_ iterator& bn:: ideque:: const_iterator:: operator++()
Increments the position.
Returns | Reference to this. |
---|
const_ iterator bn:: ideque:: const_iterator:: operator++(int)
Increments the position.
Returns | The iterator before being incremented. |
---|
const_ iterator& bn:: ideque:: const_iterator:: operator+=(size_ type value)
Increments the position the given number of times.
Parameters | |
---|---|
value | Number of positions to increment. |
Returns | Reference to this. |
const_ iterator& bn:: ideque:: const_iterator:: operator--()
Decrements the position.
Returns | Reference to this. |
---|
const_ iterator bn:: ideque:: const_iterator:: operator--(int)
Decrements the position.
Returns | The iterator before being decremented. |
---|
const_ iterator& bn:: ideque:: const_iterator:: operator-=(size_ type value)
Decrements the position the given number of times.
Parameters | |
---|---|
value | Number of positions to decrement. |
Returns | Reference to this. |
bool operator==(const const_ iterator& a,
const const_ iterator& b)
Equal operator.
Parameters | |
---|---|
a | First const_ |
b | Second const_ |
Returns | true if the first const_false . |
bool operator!=(const const_ iterator& a,
const const_ iterator& b)
Not equal operator.
Parameters | |
---|---|
a | First const_ |
b | Second const_ |
Returns | true if the first const_false . |
bool operator<(const const_ iterator& a,
const const_ iterator& b)
Less than operator.
Parameters | |
---|---|
a | First const_ |
b | Second const_ |
Returns | true if the first const_false . |
bool operator>(const const_ iterator& a,
const const_ iterator& b)
Greater than operator.
Parameters | |
---|---|
a | First const_ |
b | Second const_ |
Returns | true if the first const_false . |
bool operator<=(const const_ iterator& a,
const const_ iterator& b)
Less than or equal operator.
Parameters | |
---|---|
a | First const_ |
b | Second const_ |
Returns | true if the first const_false . |
bool operator>=(const const_ iterator& a,
const const_ iterator& b)
Greater than or equal operator.
Parameters | |
---|---|
a | First const_ |
b | Second const_ |
Returns | true if the first const_false . |