std::ranges::join_with_view<V,Pattern>::sentinel<Const>::sentinel
/*sentinel*/() = default; | (1) | (начиная с C++23) |
constexpr /*sentinel*/( /*sentinel*/<!Const> i )
requires Const && std::convertible_to<ranges::sentinel_t<V>,
ranges::sentinel_t<const V>>;
| (2) | (начиная с C++23) |
constexpr explicit /*sentinel*/ ( /*Parent*/& parent ); | (3) |
(начиная с C++23) (только для пояснения*) |
Создаёт сторожевой объект. Перегрузка (3) вызывается функцией end() для ranges::join_with_view.
| Перегрузка |
end_ |
|---|---|
| (1) | инициализируется значением по умолчанию |
| (2) | инициализируется значением std::move(s.end_ ) |
| (3) | инициализируется значением ranges::end(parent.base_ ) |
Параметры
| i | - | сторожевой объект, соответствующий изменяемому итератору |
| parent | - | объект std::ranges::join_with_view |
Пример
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/ranges/join_with_view/sentinel/sentinel