forked from boostorg/mp11
Add mp_all_of, mp_any_of, mp_none_of.
This commit is contained in:
@@ -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...>
|
||||
|
||||
Reference in New Issue
Block a user