12 #ifndef BOOST_MPL11_DETAIL_COUNT_IF_VARIADIC_SUM_HPP
13 #define BOOST_MPL11_DETAIL_COUNT_IF_VARIADIC_SUM_HPP
19 namespace boost {
namespace mpl11 {
namespace detail {
namespace count_if {
20 template <std_
size_t N>
21 constexpr std_size_t homogeneous_sum(
const bool (&array)[N]) {
23 for (std_size_t i = 0; i < N; ++i)
33 template <
template <
typename ...>
class predicate,
typename ...xs>
34 using variadic_sum =
size_t<
36 homogeneous_sum<
sizeof...(xs)+1>(
37 {
false, (bool)predicate<xs>::type::value...}
42 #endif // !BOOST_MPL11_DETAIL_COUNT_IF_VARIADIC_SUM_HPP
Defines the Integer datatype.
Defines boost::mpl11::detail::std_size_t.