Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::ranges::subrange<I,S,K>::end

Returns the sentinel indicating the end of the subrange.

Ranges
  • C++11
  • C++14
  • C++20
1 min readView on cppreference
NotebookLM
constexpr S end() const;
(since C++20)

Returns the sentinel indicating the end of the subrange.

range-begin-end.svg

Return value

end_.

Example

This section is incomplete
Reason: no example

See also

obtains the iterator
(public member function)
(C++11)(C++14)
returns an iterator to the end of a container or array
(function template)
returns a sentinel indicating the end of a range
(customization point object)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.