| /llvm-project-15.0.7/libcxx/test/std/ranges/range.factories/range.iota.view/ |
| H A D | size.pass.cpp | 73 const std::ranges::iota_view<SomeInt, SomeInt> io(SomeInt(-20), SomeInt(-10)); in test() 77 const std::ranges::iota_view<SomeInt, SomeInt> io(SomeInt(-10), SomeInt(-10)); in test() 81 const std::ranges::iota_view<SomeInt, SomeInt> io(SomeInt(0), SomeInt(0)); in test() 85 const std::ranges::iota_view<SomeInt, SomeInt> io(SomeInt(10), SomeInt(20)); in test() 89 const std::ranges::iota_view<SomeInt, SomeInt> io(SomeInt(10), SomeInt(10)); in test()
|
| H A D | types.h | 14 struct SomeInt { struct 22 friend constexpr SomeInt& operator+=(SomeInt &lhs, const SomeInt& rhs) { 25 friend constexpr SomeInt& operator-=(SomeInt &lhs, const SomeInt& rhs) { 29 friend constexpr SomeInt& operator+=(SomeInt &lhs, difference_type rhs) { 32 friend constexpr SomeInt& operator-=(SomeInt &lhs, difference_type rhs) { 36 friend constexpr SomeInt operator+(SomeInt lhs, SomeInt rhs) { 39 friend constexpr int operator-(SomeInt lhs, SomeInt rhs) { 43 friend constexpr SomeInt operator+(SomeInt lhs, difference_type rhs) { 44 return SomeInt{lhs.value_ + rhs}; 50 friend constexpr SomeInt operator+(difference_type lhs, SomeInt rhs) { [all …]
|
| H A D | ctor.value.pass.cpp | 23 SomeInt value_; 24 constexpr SomeIntComparable() : value_(SomeInt(10)) {} in SomeIntComparable() 29 friend constexpr bool operator==(SomeIntComparable lhs, SomeInt rhs) { in operator ==() 32 friend constexpr bool operator==(SomeInt lhs, SomeIntComparable rhs) { in operator ==() 47 std::ranges::iota_view<SomeInt> io(SomeInt(42)); in test() 55 std::ranges::iota_view<SomeInt, SomeIntComparable> io(SomeInt(0)); in test() 59 static_assert(!std::is_convertible_v<std::ranges::iota_view<SomeInt>, SomeInt>); in test() 60 static_assert( std::is_constructible_v<std::ranges::iota_view<SomeInt>, SomeInt>); in test()
|
| H A D | ctor.first.last.pass.cpp | 22 std::ranges::iota_view commonView(SomeInt(0), SomeInt(10)); in test() 23 std::ranges::iota_view<SomeInt, SomeInt> io(commonView.begin(), commonView.end()); in test() 28 std::ranges::iota_view unreachableSent(SomeInt(0)); in test() 29 std::ranges::iota_view<SomeInt> io(unreachableSent.begin(), std::unreachable_sentinel); in test() 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 | 27 std::ranges::iota_view<SomeInt, SomeInt> io(SomeInt(0), SomeInt(10)); in test() 32 std::ranges::iota_view<SomeInt> io(SomeInt(0), std::unreachable_sentinel); in test() 37 …std::ranges::iota_view<SomeInt, IntComparableWith<SomeInt>> io(SomeInt(0), IntComparableWith(SomeI… in test()
|
| H A D | views_iota.pass.cpp | 50 testType<SomeInt>(SomeInt(10)); in test() 51 testType<SomeInt>(IntComparableWith(SomeInt(10))); in test()
|
| H A D | end.pass.cpp | 63 testType<SomeInt>(SomeInt(10)); in test() 64 testType<SomeInt>(IntComparableWith(SomeInt(10))); in test()
|
| H A D | begin.pass.cpp | 43 testType<SomeInt>(); in test()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.factories/range.iota.view/sentinel/ |
| H A D | ctor.value.pass.cpp | 28 using Sent = std::ranges::sentinel_t<std::ranges::iota_view<SomeInt, IntSentinelWith<SomeInt>>>; in test() 29 using Iter = std::ranges::iterator_t<std::ranges::iota_view<SomeInt, IntSentinelWith<SomeInt>>>; in test() 30 auto sent = Sent(IntSentinelWith<SomeInt>(SomeInt(42))); in test() 31 assert(sent == Iter(SomeInt(42))); in test() 34 using Sent = std::ranges::sentinel_t<std::ranges::iota_view<SomeInt, IntSentinelWith<SomeInt>>>; in test() 35 static_assert(!std::is_convertible_v<Sent, IntSentinelWith<SomeInt>>); in test() 36 static_assert( std::is_constructible_v<Sent, IntSentinelWith<SomeInt>>); in test()
|
| H A D | eq.pass.cpp | 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()
|
| /llvm-project-15.0.7/libcxx/test/std/ranges/range.factories/range.iota.view/iterator/ |
| H A D | ctor.value.pass.cpp | 27 using Iter = std::ranges::iterator_t<std::ranges::iota_view<SomeInt>>; in test() 28 auto iter = Iter(SomeInt(42)); in test() 29 assert(*iter == SomeInt(42)); in test() 32 using Iter = std::ranges::iterator_t<std::ranges::iota_view<SomeInt>>; in test() 33 static_assert(!std::is_convertible_v<Iter, SomeInt>); in test() 34 static_assert( std::is_constructible_v<Iter, SomeInt>); in test()
|
| H A D | minus.pass.cpp | 48 std::ranges::iota_view io(SomeInt(0)); in test() 146 std::ranges::iota_view io(SomeInt(0)); in test() 154 std::ranges::iota_view io(SomeInt(0)); in test() 162 std::ranges::iota_view io(SomeInt(0)); in test()
|
| H A D | subscript.pass.cpp | 50 testType<SomeInt>(); in test()
|
| H A D | decrement.pass.cpp | 44 std::ranges::iota_view io(SomeInt(0)); in test()
|
| H A D | increment.pass.cpp | 36 std::ranges::iota_view io(SomeInt(0)); in test()
|
| H A D | plus.pass.cpp | 38 std::ranges::iota_view io(SomeInt(0)); in test()
|
| H A D | plus_eq.pass.cpp | 37 std::ranges::iota_view io(SomeInt(0)); in test()
|
| H A D | minus_eq.pass.cpp | 37 std::ranges::iota_view io(SomeInt(0)); in test()
|
| H A D | star.pass.cpp | 83 testType<SomeInt>(); in test()
|