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; |
ArchiveContainer |
Get constant iterators to front set |
front_set_type::const_iterator begin_front() const noexcept; |
front_set_type::const_iterator end_front() const noexcept; |
front_set_type::const_iterator cbegin_front() const noexcept; |
front_set_type::const_iterator cend_front() const noexcept; |
Get iterators to front set |
front_set_type::iterator begin_front() noexcept; |
front_set_type::iterator end_front() noexcept; |
Get reverse iterators to front set |
std::reverse_iterator<front_set_type::const_iterator> rbegin_front() const noexcept; |
std::reverse_iterator<front_set_type::const_iterator> rend_front() const noexcept; |
std::reverse_iterator<front_set_type::iterator> rbegin_front() noexcept ; |
std::reverse_iterator<front_set_type::iterator> rend_front() noexcept; |
Get constant reverse iterators to front set |
std::reverse_iterator<front_set_type::const_iterator> crbegin_front() const noexcept; |
std::reverse_iterator<front_set_type::const_iterator> crend_front() const noexcept; |
Return value
begin()
- Iterators to the first element in the containerend()
- Iterator to the past-the-end element in the containerbegin_front()
- Iterators to the first front in the archiveend_front()
- Iterator to the past-the-end front in the archive
Complexity
\[
O(1)
\]
Notes
The begin()
and begin_front()
functions provide two ways to access the elements in the archive: (i) element by element, or (ii) front by front.
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 10 11 12 13 14 15 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|