[default.sentinel] (original) (raw)

23 Iterators library [iterators]

23.5 Iterator adaptors [predef.iterators]

23.5.5 Default sentinel [default.sentinel]

🔗

namespace std { struct default_sentinel_t { };}

1

#

Class default_­sentinel_­t is an empty type used to denote the end of a range.

It can be used together with iterator types that know the bound of their range (e.g., counted_­iterator ([counted.iterator])).