Skip to content

Commit 7754ced

Browse files
committed
fixup! WIP: [libc++][ranges] Implement ranges::stride_view.
Update ranges.inc.
1 parent 296a11f commit 7754ced

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

libcxx/modules/std/ranges.inc

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -290,16 +290,15 @@ export namespace std {
290290
using std::ranges::views::zip;
291291
} // namespace views
292292

293-
# if 0
294293
// [range.zip.transform], zip transform view
295294
using std::ranges::zip_transform_view;
296295

297296
namespace views {
298297
using std::ranges::views::zip_transform;
299298
}
300-
# endif // _LIBCPP_STD_VER >= 23
299+
#endif // _LIBCPP_STD_VER >= 23
301300

302-
# if 0
301+
#if 0
303302
using std::ranges::adjacent_view;
304303

305304
namespace views {
@@ -327,42 +326,40 @@ export namespace std {
327326
namespace views {
328327
using std::ranges::views::slide;
329328
}
330-
# endif
329+
#endif
331330

332-
# if _LIBCPP_STD_VER >= 23
331+
#if _LIBCPP_STD_VER >= 23
333332
// [range.chunk.by], chunk by view
334333
using std::ranges::chunk_by_view;
335334

336335
namespace views {
337336
using std::ranges::views::chunk_by;
338337
}
339-
# endif // _LIBCPP_STD_VER >= 23
340338

341-
# if _LIBCPP_STD_VER >= 23
342339
// [range.stride], stride view
343340
using std::ranges::stride_view;
344341

345342
namespace views {
346343
using std::ranges::views::stride;
347-
} // namespace views
348-
# endif // _LIBCPP_STD_VER >= 23
344+
}
345+
#endif // _LIBCPP_STD_VER >= 23
349346

350-
# if 0
347+
#if 0
351348
using std::ranges::cartesian_product_view;
352349

353350
namespace views {
354351
using std::ranges::views::cartesian_product;
355352
}
356-
# endif
353+
#endif
357354
} // namespace ranges
358355

359356
namespace views = ranges::views;
360357

361358
using std::tuple_element;
362359
using std::tuple_size;
363360

364-
# if _LIBCPP_STD_VER >= 23
361+
#if _LIBCPP_STD_VER >= 23
365362
using std::from_range;
366363
using std::from_range_t;
367-
# endif // _LIBCPP_STD_VER >= 23
364+
#endif // _LIBCPP_STD_VER >= 23
368365
} // namespace std

0 commit comments

Comments
 (0)