Home
last modified time | relevance | path

Searched refs:NotDecrementable (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/ranges/range.factories/range.iota.view/
H A Dtypes.h155 struct NotDecrementable { struct
159 constexpr explicit NotDecrementable(int value = 0) : value_(value) {} in value_() argument
161 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; }
/llvm-project-15.0.7/libcxx/test/std/ranges/range.factories/range.iota.view/iterator/
H A Ddecrement.pass.cpp56 static_assert(!Decrementable<std::ranges::iota_view<NotDecrementable>>); in test()