Home
last modified time | relevance | path

Searched refs:SomeInt (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/ranges/range.factories/range.iota.view/
H A Dsize.pass.cpp73 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 Dtypes.h14 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 Dctor.value.pass.cpp23 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 Dctor.first.last.pass.cpp22 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 Dctor.value.bound.pass.cpp27 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 Dviews_iota.pass.cpp50 testType<SomeInt>(SomeInt(10)); in test()
51 testType<SomeInt>(IntComparableWith(SomeInt(10))); in test()
H A Dend.pass.cpp63 testType<SomeInt>(SomeInt(10)); in test()
64 testType<SomeInt>(IntComparableWith(SomeInt(10))); in test()
H A Dbegin.pass.cpp43 testType<SomeInt>(); in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.factories/range.iota.view/sentinel/
H A Dctor.value.pass.cpp28 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 Deq.pass.cpp36 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 Dctor.value.pass.cpp27 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 Dminus.pass.cpp48 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 Dsubscript.pass.cpp50 testType<SomeInt>(); in test()
H A Ddecrement.pass.cpp44 std::ranges::iota_view io(SomeInt(0)); in test()
H A Dincrement.pass.cpp36 std::ranges::iota_view io(SomeInt(0)); in test()
H A Dplus.pass.cpp38 std::ranges::iota_view io(SomeInt(0)); in test()
H A Dplus_eq.pass.cpp37 std::ranges::iota_view io(SomeInt(0)); in test()
H A Dminus_eq.pass.cpp37 std::ranges::iota_view io(SomeInt(0)); in test()
H A Dstar.pass.cpp83 testType<SomeInt>(); in test()