Box2D
3.0.0
A Real-Time-Oriented 2-D Physics Engine
|
This is a growable LIFO stack with an initial capacity of N. If the stack size exceeds the initial capacity, the heap is used to increase the size of the stack. More...
#include <GrowableStack.hpp>
Public Types | |
using | size_type = size_t |
Public Member Functions | |
GrowableStack ()=default | |
~GrowableStack () noexcept | |
void | Push (const T &element) |
T | Pop () |
constexpr size_type | GetCount () const noexcept |
Static Public Attributes | |
static constexpr auto | BufferGrowthRate = size_type{2} |
This is a growable LIFO stack with an initial capacity of N. If the stack size exceeds the initial capacity, the heap is used to increase the size of the stack.
using box2d::GrowableStack< T, N >::size_type = size_t |
|
default |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
static |