@@ -657,6 +657,42 @@ constexpr bool operator!=(type_t value1, const long_uint_t<native_t, size>& valu
657657
658658
659659
660+ // //////////////////////////////////////////////////////////////////////////////////////////////////
661+ template <typename type_t , typename native_t , uint_t size, std::enable_if_t <std::is_unsigned_v<type_t > || std::is_signed_v<type_t >, int > = 0 >
662+ constexpr bool operator <(type_t value1, const long_uint_t <native_t , size>& value2) noexcept
663+ {
664+ return long_uint_t <native_t , size>(value1) < value2;
665+ }
666+
667+
668+
669+ // //////////////////////////////////////////////////////////////////////////////////////////////////
670+ template <typename type_t , typename native_t , uint_t size, std::enable_if_t <std::is_unsigned_v<type_t > || std::is_signed_v<type_t >, int > = 0 >
671+ constexpr bool operator <=(type_t value1, const long_uint_t <native_t , size>& value2) noexcept
672+ {
673+ return long_uint_t <native_t , size>(value1) <= value2;
674+ }
675+
676+
677+
678+ // //////////////////////////////////////////////////////////////////////////////////////////////////
679+ template <typename type_t , typename native_t , uint_t size, std::enable_if_t <std::is_unsigned_v<type_t > || std::is_signed_v<type_t >, int > = 0 >
680+ constexpr bool operator >(type_t value1, const long_uint_t <native_t , size>& value2) noexcept
681+ {
682+ return long_uint_t <native_t , size>(value1) > value2;
683+ }
684+
685+
686+
687+ // //////////////////////////////////////////////////////////////////////////////////////////////////
688+ template <typename type_t , typename native_t , uint_t size, std::enable_if_t <std::is_unsigned_v<type_t > || std::is_signed_v<type_t >, int > = 0 >
689+ constexpr bool operator >=(type_t value1, const long_uint_t <native_t , size>& value2) noexcept
690+ {
691+ return long_uint_t <native_t , size>(value1) >= value2;
692+ }
693+
694+
695+
660696// //////////////////////////////////////////////////////////////////////////////////////////////////
661697template <typename type_t , typename native_t , uint_t size, typename std::enable_if_t <std::is_integral_v<type_t >, int > = 0 >
662698constexpr long_uint_t <native_t , size> operator &(type_t value1, const long_uint_t <native_t , size>& value2) noexcept
0 commit comments