Last active
December 19, 2016 07:56
-
-
Save picanumber/f008c16118c0f7407b5bb56cb6f2cdfb to your computer and use it in GitHub Desktop.
Quantification for constant typelist - variadic predicate list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <class T, template <class> class... Ps> | |
constexpr bool satisfies_all_v = std::conjunction<Ps<T>...>::value; | |
template <class T, template <class> class... Ps> | |
constexpr bool satisfies_any_v = std::disjunction<Ps<T>...>::value; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment