Home
last modified time | relevance | path

Searched refs:IteratorWithMoveIter (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.move/
H A Dranges.move_backward.pass.cpp105 struct IteratorWithMoveIter { struct
108 explicit IteratorWithMoveIter() = default; argument
110 constexpr IteratorWithMoveIter(int* ptr_) : ptr(ptr_) {} in IteratorWithMoveIter() argument
114 constexpr IteratorWithMoveIter& operator++() { ++ptr; return *this; } in operator ++() argument
115 constexpr IteratorWithMoveIter operator++(int) { auto ret = *this; ++*this; return ret; } in operator ++() argument
117 constexpr IteratorWithMoveIter& operator--() { --ptr; return *this; } in operator --() argument
118 constexpr IteratorWithMoveIter operator--(int) { auto ret = *this; --*this; return ret; } in operator --() argument
120 friend constexpr int iter_move(const IteratorWithMoveIter&) { return 42; } in iter_move() argument
122 constexpr bool operator==(const IteratorWithMoveIter& other) const = default;
267 …auto ret = std::ranges::move_backward(IteratorWithMoveIter(a), IteratorWithMoveIter(a + 4), b.data… in test()
[all …]
H A Dranges.move.pass.cpp107 struct IteratorWithMoveIter { struct
110 explicit IteratorWithMoveIter() = default; argument
112 constexpr IteratorWithMoveIter(int* ptr_) : ptr(ptr_) {} in IteratorWithMoveIter() argument
116 constexpr IteratorWithMoveIter& operator++() { ++ptr; return *this; } in operator ++() argument
117 constexpr IteratorWithMoveIter operator++(int) { auto ret = *this; ++*this; return ret; } in operator ++() argument
119 friend constexpr int iter_move(const IteratorWithMoveIter&) { return 42; } in iter_move() argument
121 constexpr bool operator==(const IteratorWithMoveIter& other) const = default;
273 auto ret = std::ranges::move(IteratorWithMoveIter(a), IteratorWithMoveIter(a + 4), b.data()); in test()
281 auto range = std::ranges::subrange(IteratorWithMoveIter(a), IteratorWithMoveIter(a + 4)); in test()