MCPcopy Create free account
hub / github.com/IntegralPilot/wasm_os / erase

Method erase

stdlib/cpp/vector.hpp:257–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255 }
256
257 iterator erase(iterator pos) {
258 if (pos != end()) {
259 for (iterator it = pos; it != end() - 1; ++it) {
260 *it = std::move(*(it + 1));
261 }
262 --size_;
263 data_[size_].~T();
264 }
265 return pos;
266 }
267
268 iterator erase(iterator first, iterator last) {
269 size_type count = last - first;

Callers 2

solveMethod · 0.80
mainFunction · 0.80

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected