Namespaces
Variants
Views
Actions

std::ranges::elements_view<V,F>::sentinel<Const>::sentinel

From cppreference.com
< cpp‎ | ranges‎ | elements view‎ | sentinel
 
 
Ranges library
Range access
Range conversions
(C++23)
Range primitives



Dangling iterator handling
Range concepts
Views

Factories




Adaptors
Range adaptor objects
Range adaptor closure objects
Helper items
 
 
/*sentinel*/() = default;
(1) (since C++20)
constexpr explicit /*sentinel*/( ranges::sentinel_t<Base> end );
(2) (since C++20)
constexpr /*sentinel*/( /*sentinel*/<!Const> i )

  requires Const && std::convertible_to<ranges::sentinel_t<V>,

                                        ranges::sentinel_t<Base>>;
(3) (since C++20)

Constructs a sentinel.

1) Default constructor. Value-initializes the underlying sentinel.
2) Initializes the underlying sentinel with end.
3) Conversion from /*sentinel*/<false> to /*sentinel*/<true>. Move constructs the underlying sentinel.

[edit] Parameters

end - a sentinel representing the end of (possibly const-qualified) V
i - a /*sentinel*/<false>

[edit] Example