Searched refs:NotIncrementable (Results 1 – 4 of 4) sorted by relevance
127 struct NotIncrementable { struct131 constexpr explicit NotIncrementable(int value = 0) : value_(value) {} in value_() argument133 bool operator==(const NotIncrementable&) const = default;135 …friend constexpr NotIncrementable& operator+=(NotIncrementable &lhs, const NotIncrementable& rhs) {138 …friend constexpr NotIncrementable& operator-=(NotIncrementable &lhs, const NotIncrementable& rhs) {142 friend constexpr NotIncrementable operator+(NotIncrementable lhs, NotIncrementable rhs) {143 return NotIncrementable{lhs.value_ + rhs.value_};145 friend constexpr int operator-(NotIncrementable lhs, NotIncrementable rhs) {149 constexpr NotIncrementable& operator++() { ++value_; return *this; }151 constexpr NotIncrementable& operator--() { --value_; return *this; }[all …]
42 static_assert(std::ranges::input_range<std::ranges::iota_view<NotIncrementable>>);
140 const std::ranges::iota_view<NotIncrementable> io(NotIncrementable(0)); in test()143 static_assert(!HasIteratorCategory<std::ranges::iota_view<NotIncrementable>>); in test()144 static_assert(std::same_as<Iter::value_type, NotIncrementable>); in test()
49 std::ranges::iota_view<NotIncrementable> io(NotIncrementable(0)); in test()