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

Function constexpr_last

include/pybind11/detail/common.h:957–959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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>
957constexpr int constexpr_last() {
958 return constexpr_impl::last(0, -1, Predicate<Ts>::value...);
959}
960
961/// Return the Nth element from the parameter pack
962template <size_t N, typename T, typename... Ts>

Callers

nothing calls this directly

Calls 1

lastFunction · 0.85

Tested by

no test coverage detected