Searched refs:NotDecrementable (Results 1 – 2 of 2) sorted by relevance
155 struct NotDecrementable { struct159 constexpr explicit NotDecrementable(int value = 0) : value_(value) {} in value_() argument161 bool operator==(const NotDecrementable&) const = default;163 …friend constexpr NotDecrementable& operator+=(NotDecrementable &lhs, const NotDecrementable& rhs) {166 …friend constexpr NotDecrementable& operator-=(NotDecrementable &lhs, const NotDecrementable& rhs) {170 friend constexpr NotDecrementable operator+(NotDecrementable lhs, NotDecrementable rhs) {171 return NotDecrementable{lhs.value_ + rhs.value_};173 friend constexpr int operator-(NotDecrementable lhs, NotDecrementable rhs) {177 constexpr NotDecrementable& operator++() { ++value_; return *this; }
56 static_assert(!Decrementable<std::ranges::iota_view<NotDecrementable>>); in test()