Reece
6894c75262
[+] other internal detail impls for internal usage [*] Begin moving `_AUROXTL_DETAIAL_HAS` block to its own file
24 lines
552 B
C++
24 lines
552 B
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: auOptional.hpp
|
|
Date: 2022-2-1
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
#if !defined(AURORA_RUNTIME_AU_OPTIONAL)
|
|
#define AURORA_RUNTIME_AU_OPTIONAL std::optional
|
|
#endif
|
|
|
|
#if defined(_AURORA_AVOID_DUMB_STL_TYPES)
|
|
template <class T>
|
|
using AuOptional = AuOptionalEx<T>;
|
|
#else
|
|
template <class T>
|
|
using AuOptional = AURORA_RUNTIME_AU_OPTIONAL<T>;
|
|
#endif
|
|
|
|
template <class T>
|
|
constexpr inline bool AuIsOptional_v = __audetail::AuHashas_value_v<T>;
|