Skip to content

Commit

Permalink
Fixed: ft::map does not longer use std::vector for buffering, but use…
Browse files Browse the repository at this point in the history
…s ft::vector instead
  • Loading branch information
sachmull authored and sachmull committed Feb 4, 2023
1 parent 9a48dda commit 4f2c2f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions map.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,8 @@ namespace ft {


void erase(iterator first, iterator last) {
std::vector<value_type> buf(first, last);
for (typename std::vector<value_type>::iterator it = buf.begin(); it != buf.end(); ++it) {
ft::vector<ft::pair<Key, T> > buf(first, last);
for (typename ft::vector<ft::pair<Key, T> >::iterator it = buf.begin(); it != buf.end(); ++it) {
erase(it->first);
}
}
Expand Down

0 comments on commit 4f2c2f6

Please sign in to comment.