Home
last modified time | relevance | path

Searched refs:RandomAccessIter (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.transform/
H A Dtypes.h59 using RandomAccessIter = random_access_iterator<int*>; variable
61 RandomAccessIter begin() const noexcept;
62 RandomAccessIter end() const noexcept;
97 constexpr auto begin() const { return RandomAccessIter(globalBuff); } in begin()
101 constexpr auto operator- (const RandomAccessIter &lhs, int* rhs) { return base(lhs) - rhs; }
102 constexpr auto operator- (int* lhs, const RandomAccessIter &rhs) { return lhs - base(rhs); }
103 constexpr bool operator==(const RandomAccessIter &lhs, int* rhs) { return base(lhs) == rhs; }
104 constexpr bool operator==(int* lhs, const RandomAccessIter &rhs) { return base(rhs) == lhs; }
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.take/
H A Dtypes.h46 using RandomAccessIter = random_access_iterator<int*>; variable
50 constexpr auto begin() const { return RandomAccessIter(ptr_); } in begin()
51 …constexpr auto end() const { return sized_sentinel<RandomAccessIter>(RandomAccessIter(ptr_ + 8)); } in end()
H A Dend.pass.cpp30 ASSERT_SAME_TYPE(decltype(tv.end()), RandomAccessIter); in test()
36 ASSERT_SAME_TYPE(decltype(tv.end()), RandomAccessIter); in test()
H A Dbegin.pass.cpp38 ASSERT_SAME_TYPE(decltype(tv.begin()), RandomAccessIter); in test()
44 ASSERT_SAME_TYPE(decltype(tv.begin()), RandomAccessIter); in test()
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.common.view/
H A Dend.pass.cpp31 …std::same_as<RandomAccessIter> auto end = common.end(); // Note this should NOT be the sentinel ty… in test()
39 …std::same_as<RandomAccessIter> auto end = common.end(); // Note this should NOT be the sentinel ty… in test()
H A Dbegin.pass.cpp44 std::same_as<RandomAccessIter> auto begin = common.begin(); in test()
51 std::same_as<RandomAccessIter> auto begin = common.begin(); in test()
H A Dtypes.h61 using RandomAccessIter = random_access_iterator<int*>; variable
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DIteratorTest.cpp41 using RandomAccessIter = SmallVectorImpl<int*>::iterator; typedef
146 RandomAccessIter>::value, "");
151 RandomAccessIter>::value, "");