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

Method method_lref_noexcept

tests/test_numpy_vectorize.cpp:96–96  ·  view source on GitHub ↗

Exercises vectorize(Return (Class::*)(Args...) & noexcept) NOLINTNEXTLINE(readability-make-member-function-const)

Source from the content-addressed store, hash-verified

94 // Exercises vectorize(Return (Class::*)(Args...) & noexcept)
95 // NOLINTNEXTLINE(readability-make-member-function-const)
96 float method_lref_noexcept(int x, float y) & noexcept { return y + (float) (x + value); }
97 // Exercises vectorize(Return (Class::*)(Args...) const & noexcept)
98 float method_const_lref_noexcept(int x, float y) const & noexcept {
99 return y + (float) (x + value);

Calls

no outgoing calls

Tested by

no test coverage detected