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

Function method_adaptor

include/pybind11/pybind11.h:2028–2030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2026 detail::enable_if_t<!std::is_member_function_pointer<detail::remove_reference_t<F>>::value,
2027 int> = 0>
2028constexpr auto method_adaptor(F &&f) -> decltype(std::forward<F>(f)) {
2029 return std::forward<F>(f);
2030}
2031
2032template <typename Derived,
2033 typename T,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected