Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void erase(A const& a){
- auto it = find(a);
- auto next = it;
- next++;
- auto prev = it;
- prev--;
- if (it != end())f.erase(it);
- update(*next);
- update(*prev);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement