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

Method set_value

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

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

Source from the content-addressed store, hash-verified

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, ...)
180 void increment() & noexcept { ++m_value; }
181 // Exercises cpp_function(Return (Class::*)(Args...) const & noexcept, ...)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected