Home
last modified time | relevance | path

Searched defs:AssignmentCounter (Results 1 – 2 of 2) sorted by relevance

/llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.reverse/
H A Dranges.reverse_copy.pass.cpp109 struct AssignmentCounter { in test() struct
110 int* counter; in test()
112 constexpr AssignmentCounter(int* counter_) : counter(counter_) {} in test() argument
113 constexpr AssignmentCounter& operator=(const AssignmentCounter&) { ++*counter; return *this; } in test()
/llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.rotate/
H A Dranges.rotate_copy.pass.cpp123 struct AssignmentCounter { in test() struct
124 int* counter; in test()
126 constexpr AssignmentCounter(int* counter_) : counter(counter_) {} in test() argument
127 constexpr AssignmentCounter& operator=(const AssignmentCounter&) { ++*counter; return *this; } in test()