ReactPhysics3D: reactphysics3d::Stack< T > Class Template Reference

| ReactPhysics3D v0.10.2 C++ Physics engine library

Loading...
Searching...
No Matches
Public Member Functions | List of all members
reactphysics3d::Stack< T > Class Template Reference

This class represents a simple generic stack. More...

`#include <include/reactphysics3d/containers/Stack.h>`

## Public Member Functions
| Stack (MemoryAllocator &allocator, uint64 capacity=0)
| Constructor.
| Stack (const Stack &stack)
| Copy constructor.
| ~Stack ()
| Destructor.
void | clear ()
| Remove all the items from the stack.
void | push (const T &element)
| Push an element into the stack.
T | pop ()
| Pop an element from the stack (remove it from the stack and return it)
T & | top ()
| Return the top element of the stack.
uint64 | size () const
| Return the number of items in the stack.
uint64 | capacity () const
| Return the capacity of the stack.

## Detailed Description

template<typename T>
class reactphysics3d::Stack< T >

This class represents a simple generic stack.

The documentation for this class was generated from the following file:

- include/reactphysics3d/containers/Stack.h