| 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 | { |