Skip to content

Instantly share code, notes, and snippets.

@picanumber
Last active December 18, 2016 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save picanumber/ae401213de5497f1c68647d1e991f242 to your computer and use it in GitHub Desktop.
Save picanumber/ae401213de5497f1c68647d1e991f242 to your computer and use it in GitHub Desktop.
Predicate logic expressed in C++17
template <bool... Bs> constexpr bool all_v = (... && Bs);
template <bool... Bs> constexpr bool any_v = (... || Bs);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment