|
libstdc++
|
#include <stl_iterator.h>
Public Types | |
| using | difference_type |
| using | iterator_type |
Public Member Functions | |
| constexpr | counted_iterator (_It __i, iter_difference_t< _It > __n) |
| template<typename _It2> | |
| constexpr | counted_iterator (const counted_iterator< _It2 > &__x) |
| constexpr _It | base () &&noexcept(is_nothrow_move_constructible_v< _It >) |
| constexpr const _It & | base () const &noexcept |
| constexpr iter_difference_t< _It > | count () const noexcept |
| constexpr decltype(auto) | operator* () const noexcept(noexcept(*_M_current)) |
| constexpr decltype(auto) | operator* () noexcept(noexcept(*_M_current)) |
| constexpr counted_iterator | operator+ (iter_difference_t< _It > __n) const |
| constexpr counted_iterator & | operator++ () |
| constexpr counted_iterator | operator++ (int) |
| constexpr decltype(auto) | operator++ (int) |
| constexpr counted_iterator & | operator+= (iter_difference_t< _It > __n) |
| constexpr counted_iterator | operator- (iter_difference_t< _It > __n) const |
| constexpr counted_iterator & | operator-- () |
| constexpr counted_iterator | operator-- (int) |
| constexpr counted_iterator & | operator-= (iter_difference_t< _It > __n) |
| constexpr auto | operator-> () const noexcept |
| template<typename _It2> | |
| constexpr counted_iterator & | operator= (const counted_iterator< _It2 > &__x) |
| constexpr decltype(auto) | operator[] (iter_difference_t< _It > __n) const noexcept(noexcept(_M_current[__n])) |
Friends | |
| constexpr iter_rvalue_reference_t< _It > | iter_move (const counted_iterator &__i) noexcept(noexcept(ranges::iter_move(__i._M_current))) |
| template<indirectly_swappable< _It > _It2> | |
| constexpr void | iter_swap (const counted_iterator &__x, const counted_iterator< _It2 > &__y) noexcept(noexcept(ranges::iter_swap(__x._M_current, __y._M_current))) |
| constexpr counted_iterator | operator+ (iter_difference_t< _It > __n, const counted_iterator &__x) |
| template<common_with< _It > _It2> | |
| constexpr iter_difference_t< _It2 > | operator- (const counted_iterator &__x, const counted_iterator< _It2 > &__y) noexcept |
| constexpr iter_difference_t< _It > | operator- (const counted_iterator &__x, default_sentinel_t) noexcept |
| constexpr iter_difference_t< _It > | operator- (default_sentinel_t, const counted_iterator &__y) noexcept |
| template<common_with< _It > _It2> | |
| constexpr strong_ordering | operator<=> (const counted_iterator &__x, const counted_iterator< _It2 > &__y) noexcept |
| template<common_with< _It > _It2> | |
| constexpr bool | operator== (const counted_iterator &__x, const counted_iterator< _It2 > &__y) noexcept |
| constexpr bool | operator== (const counted_iterator &__x, default_sentinel_t) noexcept |
An iterator adaptor that keeps track of the distance to the end.
Definition at line 2394 of file bits/stl_iterator.h.
| using std::counted_iterator< _It >::difference_type |
Definition at line 2402 of file bits/stl_iterator.h.
| using std::counted_iterator< _It >::iterator_type |
Definition at line 2400 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 2409 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 2416 of file bits/stl_iterator.h.
|
inlinenodiscardconstexprnoexcept |
Definition at line 2437 of file bits/stl_iterator.h.
|
inlinenodiscardconstexprnoexcept |
Definition at line 2432 of file bits/stl_iterator.h.
|
inlinenodiscardconstexprnoexcept |
Definition at line 2443 of file bits/stl_iterator.h.
|
inlinenodiscardconstexprnoexcept |
Definition at line 2456 of file bits/stl_iterator.h.
|
inlinenodiscardconstexprnoexcept |
Definition at line 2447 of file bits/stl_iterator.h.
|
inlinenodiscardconstexpr |
Definition at line 2521 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 2471 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 2496 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 2482 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 2532 of file bits/stl_iterator.h.
|
inlinenodiscardconstexpr |
Definition at line 2543 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 2504 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 2512 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 2565 of file bits/stl_iterator.h.
|
inlinenodiscardconstexprnoexcept |
Definition at line 2466 of file bits/stl_iterator.h.
|
inlineconstexpr |
Definition at line 2423 of file bits/stl_iterator.h.
|
inlinenodiscardconstexprnoexcept |
Definition at line 2576 of file bits/stl_iterator.h.
|
friend |
Definition at line 2624 of file bits/stl_iterator.h.
|
friend |
Definition at line 2605 of file bits/stl_iterator.h.
|
friend |
Definition at line 2615 of file bits/stl_iterator.h.
|
friend |
Definition at line 2527 of file bits/stl_iterator.h.
|
friend |
Definition at line 2550 of file bits/stl_iterator.h.
|
friend |
Definition at line 2556 of file bits/stl_iterator.h.
|
friend |
Definition at line 2561 of file bits/stl_iterator.h.
|
friend |
Definition at line 2598 of file bits/stl_iterator.h.
|
friend |
Definition at line 2587 of file bits/stl_iterator.h.
|
friend |
Definition at line 2593 of file bits/stl_iterator.h.