Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
CI
  • Loading branch information
huixie90 committed Jul 19, 2025
commit ef55fe6848d54c794a8d5a3309ad7be85a2137a0
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <type_traits>
#include <utility>

#include "test_macros.h"

// Test for basic properties of C++20 16.3.3.3.6 [customization.point.object].
template <class CPO, class... Args>
constexpr bool test(CPO& o, Args&&...) {
Expand Down Expand Up @@ -97,4 +99,7 @@ static_assert(test(std::views::reverse, a));
static_assert(test(std::views::take, a, 10));
//static_assert(test(std::views::take_while, a, [](int x){ return x < 10; }));
static_assert(test(std::views::transform, a, [](int x) { return x + 1; }));

#if TEST_STD_VER >= 23
static_assert(test(std::views::zip_transform, [](int x, int y) { return x + y; }, a, a));
#endif
Loading