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

Method func1

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

Source from the content-addressed store, hash-verified

295// Test rvalue ref param
296struct RValueRefParam {
297 std::size_t func1(std::string &&s) { return s.size(); }
298 std::size_t func2(std::string &&s) const { return s.size(); }
299 std::size_t func3(std::string &&s) & { return s.size(); }
300 std::size_t func4(std::string &&s) const & { return s.size(); }

Callers 1

test_rvalue_ref_paramFunction · 0.95

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected