std::ranges::iota_view<W, Bound>::sentinel
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Ranges library
(C++23)(C++23)
(C++26)(C++26)
(C++23)(C++23)
(C++26)(C++26)
(C++26)(C++26)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
(C++23)(C++23)
std::ranges::iota_view
Sentinel
struct /*sentinel*/;
(exposition only*)
ranges::iota_view <W, Bound>::sentinel
is the type of the reachable sentinels returned by end()
of ranges::iota_view <W, Bound>.
Contents
[edit] Data members
Member
Definition
Bound
bound_
the sentinel value(exposition-only member object*)
[edit] Member functions
std::ranges::iota_view::sentinel::sentinel
/*sentinel*/() = default;
(1)
(since C++20)
constexpr explicit /*sentinel*/( Bound bound );
(2)
(since C++20)
1) Value-initializes
bound_
.[edit] Non-member functions
operator==(std::ranges::iota_view::iterator, std::ranges::iota_view::sentinel)
friend constexpr bool operator==( const /*iterator*/& x,
const /*sentinel*/& y );
(since C++20)
const /*sentinel*/& y );
Returns x.value_
== y.bound_
.
The !=
operator is synthesized from operator==
.
This function is not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when sentinel is an associated class of the arguments.
operator-(std::ranges::iota_view::iterator, std::ranges::iota_view::sentinel)
friend constexpr std::iter_difference_t <W>
(1)
(since C++20)
operator-(const /*iterator*/& x, const /*sentinel*/& y)
friend constexpr std::iter_difference_t <W>
(2)
(since C++20)
operator-(const /*sentinel*/& x, const /*iterator*/& y)
These functions are not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when sentinel is an associated class of the arguments.
[edit] Example
This section is incomplete
Reason: no example
Reason: no example