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

Function vector_item

scripts/gdb/commands.py:46–48  ·  view source on GitHub ↗
(vector, i)

Source from the content-addressed store, hash-verified

44
45
46def vector_item(vector, i):
47 impl = vector["_M_impl"]
48 return (impl["_M_start"] + i).dereference()
49
50
51def shared_ptr_deref(ptr):

Callers 1

invokeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected