CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
Set.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 <set>
13#include <unordered_set>
14
15namespace CeresEngine {
20 template<typename Key, typename Compare = std::less<>, typename RawAllocator = DefaultAllocator>
21 using Set = std::set<Key, Compare, ScopedAllocatorAdaptor<StdAllocator<Key, RawAllocator>>>;
22
24 template<typename Key, typename Compare = std::less<>> using TemporarySet = Set<Key, Compare, TemporaryAllocator>;
25
29 template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<>, typename RawAllocator = DefaultAllocator>
30 using HashSet = std::unordered_set<Key, Hash, KeyEqual, ScopedAllocatorAdaptor<StdAllocator<Key, RawAllocator>>>;
31
33 template<typename Key, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<>>
35} // namespace CeresEngine
Definition Application.hpp:19
HashSet< Key, Hash, KeyEqual, TemporaryAllocator > TemporaryHashSet
A special HashSet that uses a fast temporary allocator.
Definition Set.hpp:34
Set< Key, Compare, TemporaryAllocator > TemporarySet
A special Set that uses a fast temporary allocator.
Definition Set.hpp:24
std::unordered_set< Key, Hash, KeyEqual, ScopedAllocatorAdaptor< StdAllocator< Key, RawAllocator > > > HashSet
HashSet is an associative container that contains a set of unique objects of type Key.
Definition Set.hpp:30
std::set< Key, Compare, ScopedAllocatorAdaptor< StdAllocator< Key, RawAllocator > > > Set
Set is an associative container that contains a sorted set of unique objects of type Key.
Definition Set.hpp:21