Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
UnorderedSet.h
Go to the documentation of this file.
1// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2// SPDX-FileCopyrightText: 2024 Jorrit Rouwe
3// SPDX-License-Identifier: MIT
4
5#pragma once
6
8
10
12template <class Key>
14{
15public:
17 static const Key & sGetKey(const Key &inKey)
18 {
19 return inKey;
20 }
21};
22
27template <class Key, class Hash = JPH::Hash<Key>, class KeyEqual = std::equal_to<Key>>
28class UnorderedSet : public HashTable<Key, Key, UnorderedSetDetail<Key>, Hash, KeyEqual>
29{
30};
31
#define JPH_NAMESPACE_END
Definition Core.h:379
#define JPH_NAMESPACE_BEGIN
Definition Core.h:373
Definition HashTable.h:16
Internal helper class to provide context for UnorderedSet.
Definition UnorderedSet.h:14
static const Key & sGetKey(const Key &inKey)
The key is the key, just return it.
Definition UnorderedSet.h:17
Definition UnorderedSet.h:29