The first standard never said exactly what data structure it uses to implement the set. It’s just the complexity of the operations on them that help us navigate some kind of self-balanced binary search tree.
Yes, if you provide the correct hint for insertion by placing the correct iterator, then all steps will be amortized by O (1) as steps 2 and 3 and will not depend on anything.
source share