Why are the Container Adapters like
std::stackorstd::queueimplemented as adapters and not as independent containers? Is it because you want e.g. a stack with an underlying memory managment of different Sequence Containers?Why are the algorithms of the STL implemented as free functions, which expect iterators, and not as methods of the corresponding containers?