Skip to content

Commit 908fb3f

Browse files
committed
review
1 parent dfe80fd commit 908fb3f

26 files changed

+30
-29
lines changed

libcxx/docs/ReleaseNotes/21.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ Implemented Papers
5353
- P2711R1: Making multi-param constructors of ``views`` ``explicit`` (`Github <https://github.com/llvm/llvm-project/issues/105252>`__)
5454
- P2770R0: Stashing stashing ``iterators`` for proper flattening (`Github <https://github.com/llvm/llvm-project/issues/105250>`__)
5555
- P2655R3: ``common_reference_t`` of ``reference_wrapper`` Should Be a Reference Type (`Github <https://github.com/llvm/llvm-project/issues/105260>`__)
56-
- P2321R2: ``zip`` (`Github <https://github.com/llvm/llvm-project/issues/105169>`__) (The paper is partially implemented. ``zip_transform_view`` is implemented in this release)
5756

5857
Improvements and New Features
5958
-----------------------------

libcxx/docs/ReleaseNotes/22.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ What's New in Libc++ 22.0.0?
3838
Implemented Papers
3939
------------------
4040

41+
- P2321R2: ``zip`` (`Github <https://github.com/llvm/llvm-project/issues/105169>`__) (The paper is partially implemented. ``zip_transform_view`` is implemented in this release)
4142

4243
Improvements and New Features
4344
-----------------------------

libcxx/test/std/library/description/conventions/customization.point.object/cpo.compile.pass.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ constexpr bool test(CPO& o, Args&&...) {
2626
static_assert(std::is_trivially_copyable_v<CPO>);
2727
static_assert(std::is_trivially_default_constructible_v<CPO>);
2828

29-
auto p = o;
29+
auto p = o;
3030
using T = decltype(p);
3131

3232
// The type of a customization point object, ignoring cv-qualifiers, shall model semiregular.
@@ -89,11 +89,12 @@ static_assert(test(std::views::counted, a, 10));
8989
static_assert(test(std::views::drop, a, 10));
9090
//static_assert(test(std::views::drop_while, a, [](int x){ return x < 10; }));
9191
//static_assert(test(std::views::elements<0>, pairs));
92-
static_assert(test(std::views::filter, a, [](int x){ return x < 10; }));
92+
static_assert(test(std::views::filter, a, [](int x) { return x < 10; }));
9393
static_assert(test(std::views::join, arrays));
9494
//static_assert(test(std::views::split, a, 4));
9595
static_assert(test(std::views::lazy_split, a, 4));
9696
static_assert(test(std::views::reverse, a));
9797
static_assert(test(std::views::take, a, 10));
9898
//static_assert(test(std::views::take_while, a, [](int x){ return x < 10; }));
99-
static_assert(test(std::views::transform, a, [](int x){ return x + 1; }));
99+
static_assert(test(std::views::transform, a, [](int x) { return x + 1; }));
100+
static_assert(test(std::views::zip_transform, [](int x, int y) { return x + y; }, a, a));

libcxx/test/std/ranges/range.adaptors/range.zip.transform/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "test_macros.h"
1616
#include "test_iterators.h"
1717
#include "test_range.h"
18-
#include "../types.h"
18+
#include "../range_adaptor_types.h"
1919

2020
#if TEST_STD_VER <= 20
2121
# error "range.zip.transform/types.h" can only be included in builds supporting C++20

libcxx/test/std/ranges/range.adaptors/range.zip/begin.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <tuple>
1919
#include <utility>
2020

21-
#include "../types.h"
21+
#include "../range_adaptor_types.h"
2222

2323
template <class T>
2424
concept HasConstBegin = requires(const T& ct) { ct.begin(); };

libcxx/test/std/ranges/range.adaptors/range.zip/cpo.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <type_traits>
1919
#include <utility>
2020

21-
#include "../types.h"
21+
#include "../range_adaptor_types.h"
2222

2323
static_assert(std::is_invocable_v<decltype((std::views::zip))>);
2424
static_assert(!std::is_invocable_v<decltype((std::views::zip)), int>);

libcxx/test/std/ranges/range.adaptors/range.zip/ctor.views.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <ranges>
1414
#include <tuple>
1515

16-
#include "../types.h"
16+
#include "../range_adaptor_types.h"
1717

1818
template <class T>
1919
void conversion_test(T);

libcxx/test/std/ranges/range.adaptors/range.zip/end.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <ranges>
1515
#include <tuple>
1616

17-
#include "../types.h"
17+
#include "../range_adaptor_types.h"
1818

1919
// ID | simple | common | bidi | random | sized | #views | v.end() | as_const(v)
2020
// | | | | access | | | | .end()

libcxx/test/std/ranges/range.adaptors/range.zip/iterator/arithmetic.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <concepts>
2626
#include <functional>
2727

28-
#include "../../types.h"
28+
#include "../../range_adaptor_types.h"
2929

3030
template <class T, class U>
3131
concept canPlusEqual = requires(T& t, U& u) { t += u; };

libcxx/test/std/ranges/range.adaptors/range.zip/iterator/compare.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "test_iterators.h"
2020
#include "test_range.h"
2121

22-
#include "../../types.h"
22+
#include "../../range_adaptor_types.h"
2323

2424
// This is for testing that zip iterator never calls underlying iterator's >, >=, <=, !=.
2525
// The spec indicates that zip iterator's >= is negating zip iterator's < instead of calling underlying iterator's >=.

0 commit comments

Comments
 (0)