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
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
14
16
17template<typename Allocator>
19
20#define UE_TCOMPACT_SET TSet
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
30
31#define UE_TSPARSE_SET TSet
33#undef UE_TSPARSE_SET
34
36
37template<typename Allocator>
39
40#endif
41
43
44#if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_4
45#include "Templates/Decay.h"
46#endif
FCompactSetLayout FScriptCompactSetLayout
Definition ScriptCompactSet.h:11
Definition ScriptCompactSet.h:17
Definition ScriptSparseSet.h:26
Definition ScriptSparseSet.h:13