UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Cases.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5namespace uLang {
6template <auto... Args>
7struct TCases
8{
9 template <typename U>
10 constexpr friend bool operator==(const U& Left, TCases Right)
11 {
12 return (... || (Left == Args));
13 }
14
15 template <typename U>
16 constexpr friend bool operator==(TCases Left, const U& Right)
17 {
18 return (... || (Args == Right));
19 }
20
21 template <typename U>
22 constexpr friend bool operator!=(const U& Left, TCases Right)
23 {
24 return (... && (Left != Args));
25 }
26
27 template <typename U>
28 constexpr friend bool operator!=(TCases Left, const U& Right)
29 {
30 return (... && (Args != Right));
31 }
32};
33
34template <auto... Args>
35constexpr TCases<Args...> Cases{};
36}
Definition VVMEngineEnvironment.h:23
constexpr TCases< Args... > Cases
Definition Cases.h:35
Definition Cases.h:8
constexpr friend bool operator==(const U &Left, TCases Right)
Definition Cases.h:10
constexpr friend bool operator!=(TCases Left, const U &Right)
Definition Cases.h:28
constexpr friend bool operator!=(const U &Left, TCases Right)
Definition Cases.h:22
constexpr friend bool operator==(TCases Left, const U &Right)
Definition Cases.h:16