diff options
Diffstat (limited to 'src/kernel/NeKit/Nullable.h')
| -rw-r--r-- | src/kernel/NeKit/Nullable.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/kernel/NeKit/Nullable.h b/src/kernel/NeKit/Nullable.h deleted file mode 100644 index 30ce9da4..00000000 --- a/src/kernel/NeKit/Nullable.h +++ /dev/null @@ -1,32 +0,0 @@ -/* ======================================== - - Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license. - -======================================== */ - -#ifndef __NE_KIT_NULLABLE_H__ -#define __NE_KIT_NULLABLE_H__ - -#include <NeKit/Config.h> - -namespace Kernel { -template <class Type> -struct IsDefined final { - using ResultType = Type; - using ResultTypeRef = Type&; - - static constexpr bool kValue = true; -}; - -template <> -struct IsDefined<nullPtr> final { - static constexpr bool kValue = false; -}; - -template <class Type> -concept IsAcceptable = requires() { - { IsDefined<Type>::kValue }; -}; -} // namespace Kernel - -#endif // !__NE_KIT_NULLABLE_H__
\ No newline at end of file |
