table of contents
- Tumbleweed 2026.11.13-1.1
- Leap-16.0
| std::ranges::enumerate_view::sentinel::sentinel(3) | C++ Standard Libary | std::ranges::enumerate_view::sentinel::sentinel(3) |
NAME¶
std::ranges::enumerate_view::sentinel::sentinel - std::ranges::enumerate_view::sentinel::sentinel
Synopsis¶
/*sentinel*/() = default; (1) (since C++23) constexpr /*sentinel*/( /*sentinel*/<!Const> i )
requires Const && (2) (since C++23)
std::convertible_to<ranges::sentinel_t<V>, ranges::sentinel_t<Base>>; private: (3) (exposition only*) constexpr explicit /*sentinel*/( ranges::sentinel_t<Base> end );
Constructs a sentinel.
1) Default constructor. Value-initializes the underlying sentinel with ranges::sentinel_t<Base>(). 2) Conversion from /*sentinel*/<false> to /*sentinel*/<true>. Move constructs the underlying sentinel end_ with std::move(other.end_). 3) A private constructor which is used by enumerate_view::end. Move constructs the end_ with std::move(end) This constructor is not accessible to users.
Parameters¶
i - a /*sentinel*/<false>
Example¶
This section is incomplete
Reason: no example
| 2026.11.10 | http://cppreference.com |