Navigation
API > API/Runtime > API/Runtime/Core
Description
Check if the Flags value contains only the flags specified by the Contains argument. It is not required that any of the flags in Contains be set in Flags and Flags may be any combination of the flags specified by Contains (including k=0). But if Flags contains any flag not in Contains, this function will return false. This function may also be understood as !EnumContainsAnyFlags(Flags, ~Contains).
Returns true if Flags is empty.
| Name | EnumOnlyContainsFlags |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/EnumClassFlags.h |
| Include Path | #include "Misc/EnumClassFlags.h" |
template<typename Enum >
bool EnumOnlyContainsFlags
(
Enum Flags,
Enum Contains
)
true if Flags consists of only the flags specified by Contains. false otherwise.
Parameters
| Name | Remarks |
|---|---|
| Flags | The value to check. |
| Contains | The flags to check the value against. |