CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
Stack.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "Deque.hpp"
11
12#include <stack>
13
14namespace CeresEngine {
18 template<typename T, typename Container = Deque<T>> using Stack = std::stack<T, Container>;
19
21 template<typename T> using TemporaryStack = Stack<T, TemporaryDeque<T>>;
22} // namespace CeresEngine
Definition Application.hpp:19
std::stack< T, Container > Stack
The Stack class is a container adapter that gives the programmer the functionality of a stack - speci...
Definition Stack.hpp:18
Stack< T, TemporaryDeque< T > > TemporaryStack
A special Stack that uses a fast temporary allocator.
Definition Stack.hpp:21