UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Set.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
Containers/ContainerAllocationPolicies.h
"
6
7
// Note: We're using define injection to define TSet instead of a using alias as the current MSVC compiler (up to at least 19.44)
8
// is issuing an error due to the use of a deduction guide in TCompactSet/TSparseSet when using the form TSet(TArray<>).
9
// If this gets resolve we should revert to a using alias for clarity, reduced header includes, potential
10
// interoperation between related types and to help intellisense.
11
12
#if UE_USE_COMPACT_SET_AS_DEFAULT
13
#include "
Containers/ScriptCompactSet.h
"
14
15
using
FScriptSetLayout
=
FScriptCompactSetLayout
;
16
17
template
<
typename
Allocator>
18
using
TScriptSet
=
TScriptCompactSet<Allocator>
;
19
20
#define UE_TCOMPACT_SET TSet
21
#include "
Containers/CompactSet.h.inl
"
22
#undef UE_TCOMPACT_SET
23
24
// Todo: This should be removed when existing code is fixed to explicitly include what it uses
25
#include "
Containers/BitArray.h
"
26
27
#else
28
29
#include "
Containers/ScriptSparseSet.h
"
30
31
#define UE_TSPARSE_SET TSet
32
#include "
Containers/SparseSet.h.inl
"
33
#undef UE_TSPARSE_SET
34
35
using
FScriptSetLayout
=
FScriptSparseSetLayout
;
36
37
template
<
typename
Allocator>
38
using
TScriptSet
=
TScriptSparseSet<Allocator>
;
39
40
#endif
41
42
using
FScriptSet
=
TScriptSet<FDefaultSetAllocator>
;
43
44
#if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_4
45
#include "
Templates/Decay.h
"
46
#endif
BitArray.h
CompactSet.h.inl
ContainerAllocationPolicies.h
Decay.h
ScriptCompactSet.h
FScriptCompactSetLayout
FCompactSetLayout FScriptCompactSetLayout
Definition
ScriptCompactSet.h:11
ScriptSparseSet.h
SparseSet.h.inl
TScriptCompactSet
Definition
ScriptCompactSet.h:17
TScriptSparseSet
Definition
ScriptSparseSet.h:26
FScriptSparseSetLayout
Definition
ScriptSparseSet.h:13
Engine
Source
Runtime
Core
Public
Containers
Set.h
Generated by
1.9.8