I know that in STL vector
represents the implementation of a dynamic array. So does the list
represents the implementation of a linked list (doubly linked list). I know that set
has an implementation similar to tree . Looking at the algorithm complexity as mentioned most of the inbuilt function in set is of complexity o(1) or o(log n). So is this tree implemented as Balanced Tree or any other kind of tree such as red-black tree and if So Why such a tree structure was chosen ?