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

Method value

tests/test_methods_and_attributes.cpp:176–176  ·  view source on GitHub ↗

Exercises cpp_function(Return (Class::*)(Args...) const noexcept, ...)

Source from the content-addressed store, hash-verified

174public:
175 // Exercises cpp_function(Return (Class::*)(Args...) const noexcept, ...)
176 int value() const noexcept { return m_value; }
177 // Exercises cpp_function(Return (Class::*)(Args...) noexcept, ...)
178 void set_value(int v) noexcept { m_value = v; }
179 // Exercises cpp_function(Return (Class::*)(Args...) & noexcept, ...)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected