H
hpsoar
I'm reading a book on STL, It provides many source codes of STL's SGI
implementation. I found the following function in class set: iterator
insert(iterator position, const value_type& x);
As I know, the position of a value inserted to is determined by the
red-black tree, which is used when implementing class set. So why
should it provide this function here?
implementation. I found the following function in class set: iterator
insert(iterator position, const value_type& x);
As I know, the position of a value inserted to is determined by the
red-black tree, which is used when implementing class set. So why
should it provide this function here?