Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ reserve
Method
reserve
dnn/include/megdnn/thin/small_vector.h:345–349 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
343
}
344
345
void reserve(size_type n) {
346
if (this->capacity() < n) {
347
this->grow(n);
348
}
349
}
350
351
T pop_back_val() {
352
T result = std::move(this->back());
Callers
nothing calls this directly
Calls
2
capacity
Method · 0.80
grow
Method · 0.45
Tested by
no test coverage detected