[libcxx-commits] [libcxx] WIP [libc++][ranges] P3060R3 Add std::views::indices(n) (PR #146823)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 3 23:35:25 PDT 2025


================
@@ -392,6 +392,16 @@ struct __fn {
 inline namespace __cpo {
 inline constexpr auto iota = __iota::__fn{};
 } // namespace __cpo
+
+
+#  if _LIBCPP_STD_VER >= 26
+
+inline constexpr auto indices = [](__integer_like auto __size) {
----------------
H-G-Hristov wrote:

I am not sure about that. Why would we want to mark a CPO lambda `static`?

https://github.com/llvm/llvm-project/pull/146823


More information about the libcxx-commits mailing list