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

Function adapt_member_ptr

include/pybind11/pybind11.h:2004–2009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2002 typename Traits = rebind_member_ptr<Derived, T>,
2003 typename Adapted = typename Traits::type>
2004constexpr PYBIND11_ALWAYS_INLINE Adapted adapt_member_ptr(T pmf) {
2005 static_assert(
2006 detail::is_accessible_base_of<typename Traits::source_class, Derived>::value,
2007 "Cannot bind an inaccessible base class method; use a lambda definition instead");
2008 return pmf;
2009}
2010
2011PYBIND11_NAMESPACE_END(detail)
2012

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected