MCPcopy Create free account
hub / github.com/atcoder/ac-library / reserve

Method reserve

atcoder/internal_queue.hpp:13–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 std::vector<T> payload;
12 int pos = 0;
13 void reserve(int n) { payload.reserve(n); }
14 int size() const { return int(payload.size()) - pos; }
15 bool empty() const { return pos == int(payload.size()); }
16 void push(const T& t) { payload.push_back(t); }

Callers 5

scc_idsMethod · 0.80
sccMethod · 0.80
sa_isFunction · 0.80
groupsMethod · 0.80
slopeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected