Skip to content

Commit be7fc42

Browse files
committed
types.h
1 parent d6e563d commit be7fc42

26 files changed

+110
-516
lines changed

libcxx/test/std/ranges/range.adaptors/range.zip.transform/ctad.compile.pass.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ struct Container {
2121
int* end() const;
2222
};
2323

24+
struct Fn {
25+
int operator()(auto&&...) const { return 5; }
26+
};
27+
2428
void testCTAD() {
2529
static_assert(std::is_same_v<decltype(std::ranges::zip_transform_view(Fn{}, Container{})),
2630
std::ranges::zip_transform_view<Fn, std::ranges::owning_view<Container>>>);

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
#include "types.h"
1616

17+
struct Fn {
18+
int operator()(auto&&...) const { return 5; }
19+
};
20+
1721
template <class T, class... Args>
1822
concept IsImplicitlyConstructible = requires(T val, Args... args) { val = {std::forward<Args>(args)...}; };
1923

libcxx/test/std/ranges/range.adaptors/range.zip.transform/sentinel/ctor.default.pass.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ struct PODSentinel {
2121
friend constexpr bool operator==(int*, const PODSentinel& s) { return s.b; }
2222
};
2323

24+
struct Fn {
25+
int operator()(auto&&...) const { return 5; }
26+
};
27+
2428
struct Range : std::ranges::view_base {
2529
int* begin() const;
2630
PODSentinel end();

0 commit comments

Comments
 (0)