[ptr_container] No insert(it, [key, ]value) in associative pointer container?

Hi, I'd like to know why there's no method 'insert' that mimicks stl's associative container's insert method that accepts an iterator that points to where the value could be placed, and the value? Regards, rod

Thorsten Ottosen escreveu:
Hi, I was thinking of something along the lines of
iterator insert(iterator, const key_type &key, std::auto_ptr<T> ptr);
and
iterator insert(iterator, const key_type &key, mapped_type val);
to mimic the insert overload that doesn't take the iterator.
And while you're at it, I've noticed that the member
std::pair
participants (2)
-
Rodolfo Lima
-
Thorsten Ottosen