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

Method method_const_lref

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

Exercises vectorize(Return (Class::*)(Args...) const &)

Source from the content-addressed store, hash-verified

83 float method_lref(int x, float y) & { return y + (float) (x + value); }
84 // Exercises vectorize(Return (Class::*)(Args...) const &)
85 float method_const_lref(int x, float y) const & { return y + (float) (x + value); }
86 // Exercises vectorize(Return (Class::*)(Args...) noexcept)
87 // NOLINTNEXTLINE(readability-make-member-function-const)
88 float method_noexcept(int x, float y) noexcept { return y + (float) (x + value); }

Calls

no outgoing calls

Tested by

no test coverage detected