MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / erase

Method erase

src/SB/Core/x/containers.h:150–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 void erase(const iterator& it, const iterator& other)
151 {
152 if (it._it == _first)
153 {
154 U32 orig_size = _size;
155 U32 orig_first = _first;
156 _first = other._it;
157 _size = mod_max_size((orig_first + orig_size) - _first);
158 }
159 else
160 {
161 _size -= mod_max_size(other._it - it._it);
162 }
163 }
164
165 iterator end() const
166 {

Callers 1

updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected