Files
2025-10-25 03:02:53 +03:00

43 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[counted.iter.access]
# 24 Iterators library [[iterators]](./#iterators)
## 24.5 Iterator adaptors [[predef.iterators]](predef.iterators#counted.iter.access)
### 24.5.7 Counted iterators [[iterators.counted]](iterators.counted#counted.iter.access)
#### 24.5.7.3 Accessors [counted.iter.access]
[🔗](#lib:base,counted_iterator)
`constexpr const I& base() const & noexcept;
`
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iterators.tex#L6063)
*Effects*: Equivalent to: return current;
[🔗](#lib:base,counted_iterator_)
`constexpr I base() &&;
`
[2](#2)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iterators.tex#L6074)
*Returns*: std::move(current)[.](#2.sentence-1)
[🔗](#lib:count,counted_iterator)
`constexpr iter_difference_t<I> count() const noexcept;
`
[3](#3)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iterators.tex#L6085)
*Effects*: Equivalent to: return length;