MCPcopy Create free account
hub / github.com/pybind/pybind11 / operator=

Function operator=

include/pybind11/pytypes.h:1084–1084  ·  view source on GitHub ↗

accessor overload required to override default assignment operator (templates are not allowed to replace default compiler-generated assignments).

Source from the content-addressed store, hash-verified

1082 // accessor overload required to override default assignment operator (templates are not
1083 // allowed to replace default compiler-generated assignments).
1084 void operator=(const accessor &a) && { std::move(*this).operator=(handle(a)); }
1085 void operator=(const accessor &a) & { operator=(handle(a)); }
1086
1087 template <typename T>

Callers

nothing calls this directly

Calls 6

moveFunction · 0.85
ensure_objectFunction · 0.85
handleFunction · 0.70
setClass · 0.70
object_or_castFunction · 0.70
operator=Method · 0.45

Tested by

no test coverage detected