diff options
Diffstat (limited to 'include/EASTL/compare.h')
-rw-r--r-- | include/EASTL/compare.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/include/EASTL/compare.h b/include/EASTL/compare.h deleted file mode 100644 index 9bc3bd6..0000000 --- a/include/EASTL/compare.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Electronic Arts Inc. All rights reserved. -/////////////////////////////////////////////////////////////////////////////// - - -#ifndef EASTL_COMPARE_H -#define EASTL_COMPARE_H - - -#include <EABase/eabase.h> - -namespace eastl -{ - -#if defined(EA_COMPILER_HAS_THREE_WAY_COMPARISON) - struct synth_three_way - { - template <typename T, typename U> - constexpr auto operator()(const T& t, const U& u) const requires requires - { - {t < u}->std::convertible_to<bool>; - {u < t}->std::convertible_to<bool>; - } - { - if constexpr (std::three_way_comparable_with<T, U>) - { - return t <=> u; - } - else - { - return (t < u) ? std::weak_ordering::less : - (u < t) ? std::weak_ordering::greater : - std::weak_ordering::equivalent; - } - } - }; - - template <typename T, typename U=T> - using synth_three_way_result = decltype(synth_three_way{}(declval<T&>(), declval<U&>())); -#endif - -} // namespace eastl - - -#endif // Header include guard
\ No newline at end of file |