1
0
forked from boostorg/mp11

Add mp_all_of, mp_any_of, mp_none_of.

This commit is contained in:
Peter Dimov
2016-11-16 04:19:37 +02:00
parent 1f0bff5f99
commit 29d030ac59
6 changed files with 218 additions and 2 deletions

View File

@@ -8,11 +8,18 @@
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include <boost/mp11/integral.hpp>
#include <boost/mp11/detail/mp_plus.hpp>
namespace boost
{
// mp_plus<T...>
// mp_not<T>
template<class T> using mp_not = mp_bool< !T::value >;
// mp_equal_to<T1, T2>
template<class T1, class T2> using mp_equal_to = mp_bool< T1::value == T2::value >;
// mp_all<T...>
// mp_and<T...>
// mp_any<T...>