Searched refs:constexpr_sum (Results 1 - 4 of 4) sorted by relevance

/gem5/ext/pybind11/include/pybind11/detail/
H A Dcommon.h524 template <typename... Ts> constexpr size_t constexpr_sum(Ts... ns) { return (0 + ... + size_t{ns}); } function
526 constexpr size_t constexpr_sum() { return 0; } function
528 constexpr size_t constexpr_sum(T n, Ts... ns) { return size_t{n} + constexpr_sum(ns...); } function
561 static constexpr auto found = constexpr_sum(Predicate<Ts>::value...);
/gem5/ext/pybind11/include/pybind11/
H A Dattr.h486 size_t named = constexpr_sum(std::is_base_of<arg, Extra>::value...),
487 size_t self = constexpr_sum(std::is_same<is_method, Extra>::value...)>
H A Dpybind11.h1067 ( constexpr_sum(is_pyobject<Extra>::value...) == 1 && // Exactly one base
1068 constexpr_sum(is_base<options>::value...) == 0 && // no template option bases
1268 static_assert( 0 == detail::constexpr_sum(std::is_base_of<arg, Extra>::value...),
H A Dnumpy.h1483 static constexpr size_t NVectorized = constexpr_sum(vectorize_arg<Args>::vectorize...);

Completed in 27 milliseconds