mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
124 files changed.
This commit is contained in:
15
Project Reboot 3.0/EnableIf.h
Normal file
15
Project Reboot 3.0/EnableIf.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
template <bool Predicate, typename Result = void>
|
||||
class TEnableIf;
|
||||
|
||||
template <typename Result>
|
||||
class TEnableIf<true, Result>
|
||||
{
|
||||
public:
|
||||
typedef Result Type;
|
||||
};
|
||||
|
||||
template <typename Result>
|
||||
class TEnableIf<false, Result>
|
||||
{ };
|
||||
Reference in New Issue
Block a user