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

Method method_const_noexcept

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

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

Source from the content-addressed store, hash-verified

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);
92 }
93#ifdef __cpp_noexcept_function_type
94 // Exercises vectorize(Return (Class::*)(Args...) & noexcept)
95 // NOLINTNEXTLINE(readability-make-member-function-const)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected