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

Method readonly

include/pybind11/pybind11.h:2065–2067  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2063struct property_cpp_function_classic {
2064 template <typename PM, must_be_member_function_pointer<PM> = 0>
2065 static cpp_function readonly(PM pm, const handle &hdl) {
2066 return cpp_function([pm](const T &c) -> const D & { return c.*pm; }, is_method(hdl));
2067 }
2068
2069 template <typename PM, must_be_member_function_pointer<PM> = 0>
2070 static cpp_function read(PM pm, const handle &hdl) {

Callers

nothing calls this directly

Calls 2

cpp_functionClass · 0.85
is_methodClass · 0.85

Tested by

no test coverage detected