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

Method method_lref

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

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

Source from the content-addressed store, hash-verified

81 // Exercises vectorize(Return (Class::*)(Args...) &)
82 // NOLINTNEXTLINE(readability-make-member-function-const)
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)

Calls

no outgoing calls

Tested by

no test coverage detected