![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Union.h>
Represents a type which is the union of several other types; i.e. it can have a value whose type is of any the union's subtypes. This differs from C union types by being type-safe, and supporting non-trivial data types as subtypes. Since a value for the union must be of a single subtype, the union stores potential values of different subtypes in overlapped memory, and keeps track of which one is currently valid.
|
inline |
Default constructor.
|
inlineexplicit |
Initialization constructor.
|
inlineexplicit |
Initialization constructor.
|
inlineexplicit |
Initialization constructor.
|
inlineexplicit |
Initialization constructor.
|
inlineexplicit |
Initialization constructor.
|
inlineexplicit |
Initialization constructor.
|
inline |
Copy constructor.
|
inline |
Destructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Equality comparison.
|
inline |
Sets the union's value to NULL.
|
inline |
If the union's current value is of the given subtype, sets the union's value to a NULL value.
|
inline |
Replaces the value of the union with a value of the given subtype.
| TTypeCompatibleBytes<TypeA> uLang::TUnion< TypeA, TypeB, TypeC, TypeD, TypeE, TypeF >::A |
| TTypeCompatibleBytes<TypeB> uLang::TUnion< TypeA, TypeB, TypeC, TypeD, TypeE, TypeF >::B |
| TTypeCompatibleBytes<TypeC> uLang::TUnion< TypeA, TypeB, TypeC, TypeD, TypeE, TypeF >::C |
| TTypeCompatibleBytes<TypeD> uLang::TUnion< TypeA, TypeB, TypeC, TypeD, TypeE, TypeF >::D |
| TTypeCompatibleBytes<TypeE> uLang::TUnion< TypeA, TypeB, TypeC, TypeD, TypeE, TypeF >::E |
| TTypeCompatibleBytes<TypeF> uLang::TUnion< TypeA, TypeB, TypeC, TypeD, TypeE, TypeF >::F |