[libcxx][ranges] Add `ranges::iota_view`.
Differential Revision: https://reviews.llvm.org/D107396
NOKEYCHECK=True
GitOrigin-RevId: 7b20e05c714e273ebe89d713cec61e5a022bbac6
diff --git a/include/ranges b/include/ranges
index 49e7964..df8d419 100644
--- a/include/ranges
+++ b/include/ranges
@@ -177,6 +177,13 @@
template<copy_constructible T>
requires is_object_v<T>
class single_view;
+
+ template<weakly_incrementable W, semiregular Bound = unreachable_sentinel_t>
+ requires weakly-equality-comparable-with<W, Bound> && copyable<W>
+ class iota_view;
+
+ template<class W, class Bound>
+ inline constexpr bool enable_borrowed_range<iota_view<W, Bound>> = true;
}
*/
@@ -199,6 +206,7 @@
#include <__ranges/empty_view.h>
#include <__ranges/enable_borrowed_range.h>
#include <__ranges/enable_view.h>
+#include <__ranges/iota_view.h>
#include <__ranges/ref_view.h>
#include <__ranges/reverse_view.h>
#include <__ranges/take_view.h>