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

Method get_noncopyable

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

Source from the content-addressed store, hash-verified

210
211 class NCVirtExt2(m.NCVirt):
212 def get_noncopyable(self, a, b):
213 # Keep a reference: this is going to throw an exception
214 self.nc = m.NonCopyable(a, b)
215 return self.nc
216
217 def get_movable(self, a, b):
218 # Return a new instance without storing it

Callers

nothing calls this directly

Calls 1

NonCopyableMethod · 0.80

Tested by

no test coverage detected