std::ranges::enumerate_view<V>:: sentinel <Const>:: sentinel
From cppreference.net
<
cpp
|
ranges
|
enumerate view
|
sentinel
C++
Ranges library
|
||||||||||||||||||||||
| Range primitives | |||||||
|
|||||||
| Range concepts | |||||||||||||||||||
|
|||||||||||||||||||
| Range factories | |||||||||
|
|||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||
| Helper items | |||||||||||||||||
|
|
||||||||||||||||
std::ranges::enumerate_view
| Member functions | ||||
|
(C++26)
|
||||
| Deduction guides | ||||
| Nested classes | ||||
| Iterator | ||||
| Sentinel | ||||
|
enumerate_view::
sentinel
::
sentinel
|
||||
|
/*sentinel*/
(
)
=
default
;
|
(1) | (начиная с C++23) |
|
constexpr
/*sentinel*/
(
/*sentinel*/
<
!
Const
>
i
)
требует Const
&&
|
(2) | (начиная с C++23) |
|
private
:
constexpr explicit /*sentinel*/ ( ranges:: sentinel_t < Base > end ) ; |
(3) | ( только для демонстрации* ) |
Создает sentinel .
1)
Конструктор по умолчанию.
Выполняет инициализацию значением
базового сентинела с помощью
ranges::
sentinel_t
<
Base
>
(
)
.
2)
Преобразование из
/*sentinel*/
<
false
>
в
/*sentinel*/
<
true
>
. Перемещающее конструирование базового стражника
end_
с помощью
std
::
move
(
other.
end_
)
.
3)
Приватный конструктор, который используется
enumerate_view::end
. Перемещающий конструктор для
end_
с
std
::
move
(
end
)
Этот конструктор недоступен для пользователей.
Параметры
| i | - | a /*sentinel*/ < false > |
Пример
|
Этот раздел не завершён
Причина: отсутствует пример |