Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
41
def
vector_size(vector):
42
impl = vector[
"_M_impl"
]
43
return
int(impl[
"_M_finish"
] - impl[
"_M_start"
])
44
45
46
def
vector_item(vector, i):
Callers
2
invoke
Method · 0.85
gi_common.h
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected