Home
last modified time | relevance | path

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

/llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.move/
H A Dranges.move_backward.pass.cpp161 struct IteratorWithMoveIter { struct
164 explicit IteratorWithMoveIter() = default; argument
166 constexpr IteratorWithMoveIter(int* ptr_) : ptr(ptr_) {} in IteratorWithMoveIter() argument
170 constexpr IteratorWithMoveIter& operator++() { ++ptr; return *this; } in operator ++() argument
171 constexpr IteratorWithMoveIter operator++(int) { auto ret = *this; ++*this; return ret; } in operator ++() argument
173 constexpr IteratorWithMoveIter& operator--() { --ptr; return *this; } in operator --() argument
174 constexpr IteratorWithMoveIter operator--(int) { auto ret = *this; --*this; return ret; } in operator --() argument
176 friend constexpr int iter_move(const IteratorWithMoveIter&) { return 42; } in iter_move() argument
178 constexpr bool operator==(const IteratorWithMoveIter& other) const = default;
344 …auto ret = std::ranges::move_backward(IteratorWithMoveIter(a), IteratorWithMoveIter(a + 4), b.data… in test()
[all …]
H A Dranges.move.pass.cpp167 struct IteratorWithMoveIter { struct
170 explicit IteratorWithMoveIter() = default; argument
172 constexpr IteratorWithMoveIter(int* ptr_) : ptr(ptr_) {} in IteratorWithMoveIter() argument
176 constexpr IteratorWithMoveIter& operator++() { ++ptr; return *this; } in operator ++() argument
177 constexpr IteratorWithMoveIter operator++(int) { auto ret = *this; ++*this; return ret; } in operator ++() argument
179 friend constexpr int iter_move(const IteratorWithMoveIter&) { return 42; } in iter_move() argument
181 constexpr bool operator==(const IteratorWithMoveIter& other) const = default;
358 auto ret = std::ranges::move(IteratorWithMoveIter(a), IteratorWithMoveIter(a + 4), b.data()); in test()
366 auto range = std::ranges::subrange(IteratorWithMoveIter(a), IteratorWithMoveIter(a + 4)); in test()