Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P1899R3: views::stride #2981

Merged
merged 7 commits into from
Aug 7, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions stl/debugger/STL.natvis
Original file line number Diff line number Diff line change
Expand Up @@ -1881,13 +1881,15 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
<AlternativeType Name="std::ranges::filter_view&lt;*&gt;"/>
<AlternativeType Name="std::ranges::owning_view&lt;*&gt;"/>
<AlternativeType Name="std::ranges::chunk_by_view&lt;*&gt;"/>
<AlternativeType Name="std::ranges::stride_view&lt;*&gt;"/>
<DisplayString>{_Range}</DisplayString>
<Expand>
<Item Optional="true" Name="pred">_Pred</Item>
<Item Optional="true" Name="next">_Next</Item>
<Item Optional="true" Name="count">_Count</Item>
<Item Optional="true" Name="function">_Fun</Item>
<Item Optional="true" Name="pattern">_Pattern</Item>
<Item Optional="true" Name="stride">_Stride</Item>
</Expand>
</Type>

Expand Down
348 changes: 348 additions & 0 deletions stl/inc/ranges

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions stl/inc/yvals_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@
// P1659R3 ranges::starts_with, ranges::ends_with
// P1679R3 contains() For basic_string/basic_string_view
// P1682R3 to_underlying() For Enumerations
// P1899R3 views::stride
// P1951R1 Default Template Arguments For pair's Forwarding Constructor
// P1989R2 Range Constructor For string_view
// P2077R3 Heterogeneous Erasure Overloads For Associative Containers
Expand Down Expand Up @@ -1475,6 +1476,7 @@
#define __cpp_lib_ranges_join_with 202202L
#define __cpp_lib_ranges_slide 202202L
#define __cpp_lib_ranges_starts_ends_with 202106L
#define __cpp_lib_ranges_stride 202207L
#endif // __cpp_lib_concepts

#define __cpp_lib_spanstream 202106L
Expand Down
2 changes: 2 additions & 0 deletions tests/std/test.lst
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,8 @@ tests\P1645R1_constexpr_numeric
tests\P1659R3_ranges_alg_ends_with
tests\P1659R3_ranges_alg_starts_with
tests\P1682R3_to_underlying
tests\P1899R3_views_stride
tests\P1899R3_views_stride_death
tests\P1951R1_default_arguments_pair_forward_ctor
tests\P2136R3_invoke_r
tests\P2162R2_std_visit_for_derived_classes_from_variant
Expand Down
4 changes: 4 additions & 0 deletions tests/std/tests/P1899R3_views_stride/env.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

RUNALL_INCLUDE ..\strict_concepts_latest_matrix.lst
Loading