Skip to content

Commit

Permalink
generic include all
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Xiang <[email protected]>
  • Loading branch information
TonyXiang8787 committed Jan 21, 2025
1 parent 8540595 commit 3ef4445
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ concept is_in_list_c = (std::same_as<std::remove_const_t<T>, Ts> || ...);

// functor to include all
struct IncludeAll {
constexpr bool operator()(Idx /*ignored*/) const { return true; }
template <class... T> constexpr bool operator()(T&&... /*ignored*/) const { return true; }
};
constexpr IncludeAll include_all{};

Expand Down

0 comments on commit 3ef4445

Please sign in to comment.