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

Method peek

tests/test_methods_and_attributes.cpp:202–202  ·  view source on GitHub ↗

Exercises cpp_function(Return (Class::*)(Args...) const &&, ...)

Source from the content-addressed store, hash-verified

200 }
201 // Exercises cpp_function(Return (Class::*)(Args...) const &&, ...)
202 int peek() const && { return m_value; }
203#ifdef __cpp_noexcept_function_type
204 // Exercises cpp_function(Return (Class::*)(Args...) && noexcept, ...)
205 std::string take_noexcept() && noexcept { // NOLINT(readability-make-member-function-const)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected