Post #31 369 Aug 12, 2021, 13:00 UTC #cpp #stackoverflow https://stackoverflow.com/questions/102459/why-does-stdstack-use-stddeque-by-default Stack Overflow Why does std::stack use std::deque by default? Since the only operations required for a container to be used in a stack are: back() push_back() pop_back() Why is the default container for it a deque instead of a vector? Don't deque reallocations