Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
helly25 committed Nov 8, 2024
1 parent f1cc82d commit bc80bf5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions mbo/types/required.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,6 @@ class Required {

constexpr operator const T &() const noexcept { return value_; } // NOLINT(*-explicit-*)

Required& operator++() = delete;
Required& operator--() = delete;
Required operator++(int) = delete; // NOLINT(cert-dcl21-cpp)
Required operator--(int) = delete; // NOLINT(cert-dcl21-cpp)
Required& operator+=(std::ptrdiff_t) = delete;
Required& operator-=(std::ptrdiff_t) = delete;
void operator[](std::ptrdiff_t) const = delete;

template<std::three_way_comparable_with<T> U>
constexpr auto operator<=>(const Required<U>& other) const noexcept {
if (value_ == other) {
Expand Down

0 comments on commit bc80bf5

Please sign in to comment.