MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / vector_size

Function vector_size

scripts/gdb/commands.py:41–43  ·  view source on GitHub ↗
(vector)

Source from the content-addressed store, hash-verified

39
40
41def vector_size(vector):
42 impl = vector["_M_impl"]
43 return int(impl["_M_finish"] - impl["_M_start"])
44
45
46def vector_item(vector, i):

Callers 2

invokeMethod · 0.85
gi_common.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected