CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
List.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
11
12#include <forward_list>
13#include <list>
14
15namespace CeresEngine {
21 template<typename T, typename RawAllocator = DefaultAllocator> using List = std::list<T, ScopedAllocatorAdaptor<StdAllocator<T, RawAllocator>>>;
22
24 template<typename T> using TemporaryList = List<T, TemporaryAllocator>;
25
32 template<typename T, typename RawAllocator = DefaultAllocator>
33 using ForwardList = std::forward_list<T, ScopedAllocatorAdaptor<StdAllocator<T, RawAllocator>>>;
34
37} // namespace CeresEngine
Definition Application.hpp:19
std::list< T, ScopedAllocatorAdaptor< StdAllocator< T, RawAllocator > > > List
List is a container that supports constant time insertion and removal of elements from anywhere in th...
Definition List.hpp:21
ForwardList< T, TemporaryAllocator > TemporaryForwardList
A special ForwardList that uses a fast temporary allocator.
Definition List.hpp:36
List< T, TemporaryAllocator > TemporaryList
A special List that uses a fast temporary allocator.
Definition List.hpp:24
std::forward_list< T, ScopedAllocatorAdaptor< StdAllocator< T, RawAllocator > > > ForwardList
ForwardList is a container that supports fast insertion and removal of elements from anywhere in the ...
Definition List.hpp:33