Skip to content

Commit

Permalink
P1899R3: views::stride (microsoft#2981)
Browse files Browse the repository at this point in the history
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
  • Loading branch information
3 people authored and fsb4000 committed Aug 13, 2022
1 parent f840416 commit 60d6ba6
Show file tree
Hide file tree
Showing 9 changed files with 1,054 additions and 0 deletions.
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 @@ -311,6 +311,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 @@ -1515,6 +1516,7 @@ _EMIT_STL_ERROR(STL1004, "C++98 unexpected() is incompatible with C++23 unexpect
#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 @@ -482,6 +482,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

0 comments on commit 60d6ba6

Please sign in to comment.