Home
last modified time | relevance | path

Searched refs:NotIncrementable (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/ranges/range.factories/range.iota.view/
H A Dtypes.h127 struct NotIncrementable { struct
131 constexpr explicit NotIncrementable(int value = 0) : value_(value) {} in value_() argument
133 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 …]
H A Drange_concept_conformance.compile.pass.cpp42 static_assert(std::ranges::input_range<std::ranges::iota_view<NotIncrementable>>);
/llvm-project-15.0.7/libcxx/test/std/ranges/range.factories/range.iota.view/iterator/
H A Dmember_typedefs.compile.pass.cpp140 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()
H A Dincrement.pass.cpp49 std::ranges::iota_view<NotIncrementable> io(NotIncrementable(0)); in test()