Skip to content

Commit 782c998

Browse files
committed
fixup! WIP: [libc++][ranges] Implement ranges::stride_view.
Update ranges.inc.
1 parent 8d8a6dc commit 782c998

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
@@ -293,16 +293,15 @@ export namespace std {
293293
using std::ranges::views::zip;
294294
} // namespace views
295295

296-
# if 0
297296
// [range.zip.transform], zip transform view
298297
using std::ranges::zip_transform_view;
299298

300299
namespace views {
301300
using std::ranges::views::zip_transform;
302301
}
303-
# endif // _LIBCPP_STD_VER >= 23
302+
#endif // _LIBCPP_STD_VER >= 23
304303

305-
# if 0
304+
#if 0
306305
using std::ranges::adjacent_view;
307306

308307
namespace views {
@@ -330,42 +329,40 @@ export namespace std {
330329
namespace views {
331330
using std::ranges::views::slide;
332331
}
333-
# endif
332+
#endif
334333

335-
# if _LIBCPP_STD_VER >= 23
334+
#if _LIBCPP_STD_VER >= 23
336335
// [range.chunk.by], chunk by view
337336
using std::ranges::chunk_by_view;
338337

339338
namespace views {
340339
using std::ranges::views::chunk_by;
341340
}
342-
# endif // _LIBCPP_STD_VER >= 23
343341

344-
# if _LIBCPP_STD_VER >= 23
345342
// [range.stride], stride view
346343
using std::ranges::stride_view;
347344

348345
namespace views {
349346
using std::ranges::views::stride;
350-
} // namespace views
351-
# endif // _LIBCPP_STD_VER >= 23
347+
}
348+
#endif // _LIBCPP_STD_VER >= 23
352349

353-
# if 0
350+
#if 0
354351
using std::ranges::cartesian_product_view;
355352

356353
namespace views {
357354
using std::ranges::views::cartesian_product;
358355
}
359-
# endif
356+
#endif
360357
} // namespace ranges
361358

362359
namespace views = ranges::views;
363360

364361
using std::tuple_element;
365362
using std::tuple_size;
366363

367-
# if _LIBCPP_STD_VER >= 23
364+
#if _LIBCPP_STD_VER >= 23
368365
using std::from_range;
369366
using std::from_range_t;
370-
# endif // _LIBCPP_STD_VER >= 23
367+
#endif // _LIBCPP_STD_VER >= 23
371368
} // namespace std

0 commit comments

Comments
 (0)