Searched refs:IntComparableWith (Results 1 – 8 of 8) sorted by relevance
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.factories/range.iota.view/ |
| H A D | types.h | 64 struct IntComparableWith { struct 68 constexpr explicit IntComparableWith(T value = T()) : value_(value) {} in value_() argument 70 friend constexpr bool operator==(IntComparableWith lhs, IntComparableWith rhs) { 73 friend constexpr bool operator==(IntComparableWith lhs, T rhs) { 76 friend constexpr bool operator==(T lhs, IntComparableWith rhs) { 80 friend constexpr IntComparableWith operator+(IntComparableWith lhs, IntComparableWith rhs) { 81 return IntComparableWith{lhs.value_ + rhs.value_}; 83 friend constexpr difference_type operator-(IntComparableWith lhs, IntComparableWith rhs) { 87 constexpr IntComparableWith& operator++() { ++value_; return *this; } 88 constexpr IntComparableWith operator++(int) { auto tmp = *this; ++value_; return tmp; } argument [all …]
|
| H A D | views_iota.pass.cpp | 51 testType<SomeInt>(IntComparableWith(SomeInt(10))); in test() 52 testType<signed long>(IntComparableWith<signed long>(10)); in test() 53 testType<unsigned long>(IntComparableWith<unsigned long>(10)); in test() 54 testType<int>(IntComparableWith<int>(10)); in test() 57 testType<unsigned>(IntComparableWith<unsigned>(10)); in test() 59 testType<short>(IntComparableWith<short>(10)); in test() 60 testType<unsigned short>(IntComparableWith<unsigned short>(10)); in test()
|
| H A D | end.pass.cpp | 64 testType<SomeInt>(IntComparableWith(SomeInt(10))); in test() 65 testType<signed long>(IntComparableWith<signed long>(10)); in test() 66 testType<unsigned long>(IntComparableWith<unsigned long>(10)); in test() 67 testType<int>(IntComparableWith<int>(10)); in test() 72 testType<unsigned>(IntComparableWith<unsigned>(10)); in test() 74 testType<short>(IntComparableWith<short>(10)); in test() 75 testType<unsigned short>(IntComparableWith<unsigned short>(10)); in test()
|
| H A D | ctad.compile.pass.cpp | 46 decltype(std::ranges::iota_view(0, IntComparableWith(0))), in test() 47 std::ranges::iota_view<int, IntComparableWith<int>> in test()
|
| H A D | ctor.first.last.pass.cpp | 34 std::ranges::iota_view differentTypes(SomeInt(0), IntComparableWith(SomeInt(10))); in test() 35 …std::ranges::iota_view<SomeInt, IntComparableWith<SomeInt>> io(differentTypes.begin(), differentTy… in test()
|
| H A D | ctor.value.bound.pass.cpp | 37 …std::ranges::iota_view<SomeInt, IntComparableWith<SomeInt>> io(SomeInt(0), IntComparableWith(SomeI… in test()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.factories/range.iota.view/sentinel/ |
| H A D | eq.pass.cpp | 22 const std::ranges::iota_view<int, IntComparableWith<int>> io(0, IntComparableWith<int>(10)); in test() 29 std::ranges::iota_view<int, IntComparableWith<int>> io(0, IntComparableWith<int>(10)); in test() 36 const std::ranges::iota_view io(SomeInt(0), IntComparableWith(SomeInt(10))); in test() 43 std::ranges::iota_view io(SomeInt(0), IntComparableWith(SomeInt(10))); in test()
|
| H A D | ctor.default.pass.cpp | 21 …using Sent = std::ranges::sentinel_t<std::ranges::iota_view<Int42<DefaultTo42>, IntComparableWith<… in test() 22 …using Iter = std::ranges::iterator_t<std::ranges::iota_view<Int42<DefaultTo42>, IntComparableWith<… in test()
|