Iterators
Method |
---|
MultimapContainer |
Get constant iterators |
const_iterator begin() const noexcept; |
const_iterator end() const noexcept; |
const_iterator cbegin() const noexcept; |
const_iterator cend() const noexcept; |
Get iterators |
iterator begin() noexcept; |
iterator end() noexcept; |
Get reverse iterators |
std::reverse_iterator<const_iterator> rbegin() const noexcept; |
std::reverse_iterator<const_iterator> rend() const noexcept; |
std::reverse_iterator<iterator> rbegin() noexcept ; |
std::reverse_iterator<iterator> rend() noexcept; |
Get constant reverse iterators |
std::reverse_iterator<const_iterator> crbegin() const noexcept; |
std::reverse_iterator<const_iterator> crend() const noexcept; |
Return value
begin()
- Iterator to the first element in the containerend()
- Iterator to the past-the-end element in the container (see notes)
Complexity
\[
O(1)
\]
Notes
All requirements of a SpatialContainer also apply here.
Info
See the section on spatial containers / iterators for more information.
Example
Continuing from the previous example:
1 2 3 4 5 6 7 8 9 |
|
1 2 3 4 5 6 7 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|