.TH "std::default_sentinel_t" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::default_sentinel_t .SH SYNOPSIS .br .PP .PP \fC#include \fP .SH "Detailed Description" .PP A sentinel type that can be used to check for the end of a range\&. .PP For some iterator types the past-the-end sentinel value is independent of the underlying sequence, and a default sentinel can be used with them\&. For example, a \fCstd::counted_iterator\fP keeps a count of how many elements remain, and so checking for the past-the-end value only requires checking if that count has reached zero\&. A past-the-end \fCstd::istream_iterator\fP is equal to the default-constructed value, which can be easily checked\&. .PP Comparing iterators of these types to \fCstd::default_sentinel\fP is a convenient way to check if the end has been reached\&. .PP \fBSince\fP .RS 4 C++20 .RE .PP .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.