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

Method increment

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

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

Source from the content-addressed store, hash-verified

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, ...)
182 int capped_value() const & noexcept { return m_value < 100 ? m_value : 100; }
183

Callers 1

test_noexcept_baseFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected