Efficient implementation that uses prefetching and overlapping using internal buffers. More...
#include <stack.h>
Inherits noncopyable.
Public Member Functions | |
template<class stack_type > | |
grow_shrink_stack (const stack_type &stack_) | |
Construction from a stack. |
Efficient implementation that uses prefetching and overlapping using internal buffers.
Use it if your access pattern consists of many repeated push'es and pop's For semantics of the methods see documentation of the STL std::stack
.
grow_shrink_stack< Config_ >::grow_shrink_stack | ( | const stack_type & | stack_ | ) | [inline] |
Construction from a stack.
stack_ | stack object (could be external or internal, important is that it must have a copy constructor, top() and pop() methods ) |