Home
last modified time | relevance | path

Searched defs: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()
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()