@@ -34,15 +34,15 @@ template <typename T> class byterator {
3434 using byte_t = std::remove_reference_t <forward_like_t <T, std::byte>>;
3535 byte_t *ptr;
3636
37- [[nodiscard]] constexpr friend auto operator ==(byterator const &x,
37+ [[nodiscard]] friend constexpr auto operator ==(byterator const &x,
3838 byterator const &y) -> bool {
3939 return x.ptr == y.ptr ;
4040 }
4141
4242 template <typename It,
4343 std::enable_if_t <std::is_same_v<detail::iterator_value_t <It>, T>,
4444 int > = 0 >
45- [[nodiscard]] constexpr friend auto operator ==(byterator const &x, It y)
45+ [[nodiscard]] friend constexpr auto operator ==(byterator const &x, It y)
4646 -> bool {
4747 return static_cast <void const *>(x.ptr ) ==
4848 static_cast <void const *>(stdx::to_address (y));
@@ -60,34 +60,34 @@ template <typename T> class byterator {
6060 }
6161
6262 template <typename It>
63- [[nodiscard]] constexpr friend auto operator ==(It y, byterator const &x)
63+ [[nodiscard]] friend constexpr auto operator ==(It y, byterator const &x)
6464 -> bool {
6565 return x == y;
6666 }
6767 template <typename It>
68- [[nodiscard]] constexpr friend auto operator !=(byterator const &x, It y)
68+ [[nodiscard]] friend constexpr auto operator !=(byterator const &x, It y)
6969 -> bool {
7070 return not (x == y);
7171 }
7272 template <typename It>
73- [[nodiscard]] constexpr friend auto operator !=(It y, byterator const &x)
73+ [[nodiscard]] friend constexpr auto operator !=(It y, byterator const &x)
7474 -> bool {
7575 return not (x == y);
7676 }
7777
78- [[nodiscard]] constexpr friend auto operator <(byterator const &x,
78+ [[nodiscard]] friend constexpr auto operator <(byterator const &x,
7979 byterator const &y) -> bool {
8080 return std::less{}(x.ptr , y.ptr );
8181 }
82- [[nodiscard]] constexpr friend auto operator <=(byterator const &x,
82+ [[nodiscard]] friend constexpr auto operator <=(byterator const &x,
8383 byterator const &y) -> bool {
8484 return std::less_equal{}(x.ptr , y.ptr );
8585 }
86- [[nodiscard]] constexpr friend auto operator >(byterator const &x,
86+ [[nodiscard]] friend constexpr auto operator >(byterator const &x,
8787 byterator const &y) -> bool {
8888 return std::greater{}(x.ptr , y.ptr );
8989 }
90- [[nodiscard]] constexpr friend auto operator >=(byterator const &x,
90+ [[nodiscard]] friend constexpr auto operator >=(byterator const &x,
9191 byterator const &y) -> bool {
9292 return std::greater_equal{}(x.ptr , y.ptr );
9393 }
0 commit comments