From 7b512e182cbdaca00c0486826d32562451cde403 Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Thu, 25 Nov 2021 23:10:40 +0700 Subject: [PATCH] remove unnecessary type operators --- headers/meta.hpp/meta_types.hpp | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/headers/meta.hpp/meta_types.hpp b/headers/meta.hpp/meta_types.hpp index 50c8d49..3285c43 100644 --- a/headers/meta.hpp/meta_types.hpp +++ b/headers/meta.hpp/meta_types.hpp @@ -75,16 +75,6 @@ namespace meta_hpp std::same_as; } - template < detail::type_family T > - bool operator<(type_id l, const T& r) noexcept { - return static_cast(r) && l < r.get_id(); - } - - template < detail::type_family T > - bool operator<(const T& l, type_id r) noexcept { - return !static_cast(l) || l.get_id() < r; - } - template < detail::type_family T, detail::type_family U > bool operator<(const T& l, const U& r) noexcept { if ( !static_cast(r) ) { @@ -98,16 +88,6 @@ namespace meta_hpp return l.get_id() < r.get_id(); } - template < detail::type_family T > - bool operator==(type_id l, const T& r) noexcept { - return static_cast(r) && l == r.get_id(); - } - - template < detail::type_family T > - bool operator==(const T& l, type_id r) noexcept { - return static_cast(l) && l.get_id() == r; - } - template < detail::type_family T, detail::type_family U > bool operator==(const T& l, const U& r) noexcept { if ( static_cast(l) != static_cast(r) ) { @@ -121,16 +101,6 @@ namespace meta_hpp return l.get_id() == r.get_id(); } - template < detail::type_family T > - bool operator!=(type_id l, const T& r) noexcept { - return !(l == r); - } - - template < detail::type_family T > - bool operator!=(const T& l, type_id r) noexcept { - return !(l == r); - } - template < detail::type_family T, detail::type_family U > bool operator!=(const T& l, const U& r) noexcept { return !(l == r);