MCPcopy Create free account
hub / github.com/pybind/pybind11 / constexpr_first

Function constexpr_first

include/pybind11/detail/common.h:951–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

949/// Returns sizeof...(Ts) if none match.
950template <template <typename> class Predicate, typename... Ts>
951constexpr int constexpr_first() {
952 return constexpr_impl::first(0, Predicate<Ts>::value...);
953}
954
955/// Return the index of the last type in Ts which satisfies Predicate<T>, or -1 if none match.
956template <template <typename> class Predicate, typename... Ts>

Callers

nothing calls this directly

Calls 1

firstFunction · 0.85

Tested by

no test coverage detected