Home
last modified time | relevance | path

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