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

Skip to content
Merged
Show file tree
Hide file tree
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
Next Next commit
types.h
  • Loading branch information
huixie90 committed Jul 19, 2025
commit 097957df3053b1253c36190249b102e0bc1e3afe
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ struct Container {
int* end() const;
};

struct Fn {
int operator()(auto&&...) const { return 5; }
};

void testCTAD() {
static_assert(std::is_same_v<decltype(std::ranges::zip_transform_view(Fn{}, Container{})),
std::ranges::zip_transform_view<Fn, std::ranges::owning_view<Container>>>);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

#include "types.h"

struct Fn {
int operator()(auto&&...) const { return 5; }
};

template <class T, class... Args>
concept IsImplicitlyConstructible = requires(T val, Args... args) { val = {std::forward<Args>(args)...}; };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ struct PODSentinel {
friend constexpr bool operator==(int*, const PODSentinel& s) { return s.b; }
};

struct Fn {
int operator()(auto&&...) const { return 5; }
};

struct Range : std::ranges::view_base {
int* begin() const;
PODSentinel end();
Expand Down
Loading