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

Method get_movable

tests/test_virtual_functions.py:217–219  ·  view source on GitHub ↗
(self, a, b)

Source from the content-addressed store, hash-verified

215 return self.nc
216
217 def get_movable(self, a, b):
218 # Return a new instance without storing it
219 return m.Movable(a, b)
220
221 ncv1 = NCVirtExt()
222 assert ncv1.print_nc(2, 3) == "36"

Callers

nothing calls this directly

Calls 1

MovableMethod · 0.80

Tested by

no test coverage detected