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

> C++ Atlas: `cppatlas.com/w/cpp/ranges/subrange/end` | Source: https://en.cppreference.com/w/cpp/ranges/subrange/end | Domain: Ranges | Standards: C++11, C++14, C++20

Returns the sentinel indicating the end of the subrange.

## Official Specification Summary (cppreference)

```cpp
constexpr S end() const; // (since C++20)
```

Returns the sentinel indicating the end of the `subrange`.

### Return value

`end_`.

### Example

> Note: This section is incomplete Reason: no example

### See also

- [`begin`](https://en.cppreference.com/w/cpp/ranges/subrange/begin): obtains the iterator (public member function)
- [`end`](https://en.cppreference.com/w/cpp/iterator/end) (C++11), [`cend`](https://en.cppreference.com/w/cpp/iterator/end) (C++14): returns an iterator to the end of a container or array (function template)
- [`ranges::end`](https://en.cppreference.com/w/cpp/ranges/end) (C++20): returns a sentinel indicating the end of a range (customization point object)

---
Attribution: content from https://en.cppreference.com/w/cpp/ranges/subrange/end (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.