Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@picanumber
Last active December 18, 2016 20:22
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/64a70a7b7c2f4fb25883c8bbf8f7e6c9 to your computer and use it in GitHub Desktop.
Save picanumber/64a70a7b7c2f4fb25883c8bbf8f7e6c9 to your computer and use it in GitHub Desktop.
Definition of the existential and universal quantifiers
// ------------------------------------ "is there ?"
template <template <class> class P, class... Ts>
constexpr bool existential_quantifier = any_v<P<Ts>::value...>;
// ----------------------------------------- "are all ?"
template <template <class> class P, class... Ts>
constexpr bool universal_quantifier = all_v<P<Ts>::value...>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment