Namespaces
Variants

std::ranges::enumerate_view<V>::sentinel<Const>::sentinel

De es.cppreference.net
 
 
Biblioteca de rangos
Adaptadores de rangos
 
 
/*sentinel*/() = default;
(1) (desde C++23)
constexpr /*sentinel*/( /*sentinel*/<!Const> i )
    requires Const &&
        std::convertible_to<ranges::sentinel_t<V>, ranges::sentinel_t<Base>>;
(2) (desde C++23)
private:
constexpr explicit /*sentinel*/( ranges::sentinel_t<Base> end );
(3) (solo exposición*)

Construye un sentinel.

1) Constructor por defecto. Inicializa por valor el sentinel subyacente con ranges::sentinel_t<Base>().
2) Conversión de /*sentinel*/<false> a /*sentinel*/<true>. Construye por movimiento el sentinel subyacente end_ con std::move(other.end_).
3) Un constructor privado que es usado por enumerate_view::end. Construye por movimiento el end_ con std::move(end) Este constructor no es accesible para los usuarios.

Parámetros

i - a /*sentinel*/ < false >

Ejemplo