How to Implement std::conjunction and std::disjunction in C++11
▻https://www.fluentcpp.com/2021/04/30/how-to-implement-stdconjunction-and-stddisjunction-in-c11
Among the many features that C++17 introduced, the standard library got std::conjunction and its brother (or is it a sister?) std::disjunction. std::conjunction allows to perform a logical AND on a variadic pack of boolean values, and std::disjunction a logical OR: std::conjunction<Bs...>::value // is true if all Bs... are true, false otherwise std::disjunction<Bs...>::value // is true if at least one […]