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

25 lines
718 B
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.

[default.sentinel]
# 24 Iterators library [[iterators]](./#iterators)
## 24.5 Iterator adaptors [[predef.iterators]](predef.iterators#default.sentinel)
### 24.5.6 Default sentinel [default.sentinel]
[🔗](#lib:default_sentinel_t)
`namespace std {
struct default_sentinel_t { };
}
`
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iterators.tex#L5867)
Class default_sentinel_t is an empty type used to denote the end of a
range[.](#1.sentence-1)
It can be used together with iterator types that know the bound
of their range (e.g., counted_iterator ([[counted.iterator]](counted.iterator "24.5.7.1Class template counted_­iterator")))[.](#1.sentence-2)