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

Class NCVirtExt

tests/test_virtual_functions.py:201–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199)
200def test_move_support():
201 class NCVirtExt(m.NCVirt):
202 def get_noncopyable(self, a, b):
203 # Constructs and returns a new instance:
204 return m.NonCopyable(a * a, b * b)
205
206 def get_movable(self, a, b):
207 # Return a referenced copy
208 self.movable = m.Movable(a, b)
209 return self.movable
210
211 class NCVirtExt2(m.NCVirt):
212 def get_noncopyable(self, a, b):

Callers 1

test_move_supportFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_move_supportFunction · 0.68