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

Method method_noexcept

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

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

Source from the content-addressed store, hash-verified

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); }
89 // Exercises vectorize(Return (Class::*)(Args...) const noexcept)
90 float method_const_noexcept(int x, float y) const noexcept {
91 return y + (float) (x + value);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected