Home

Awesome

plf::stack

A data container replicating std::stack functionality but with better performance than standard library containers in a stack context. C++98/03/11/14/etc-compatible. Full documentation/function descriptions here: https://plflib.org/stack.htm

plf::stack is faster than all std:: containers in the context of a stack. It has the following averaged performance characteristics versus std::stack (assuming underlying container is the default, std::deque):

Averaged across total numbers of stored elements ranging between 10 and 1000000. The benchmark in question is total time taken to construct, push all elements, read and pop all elements, then destruct.

Benchmarks are here: https://plflib.org/stack.htm#benchmarks