Lines Matching refs:stable_test
42 struct stable_test { struct
46 stable_test(uint8_t k) : key(k), payload(0) {} in stable_test() argument
47 stable_test(uint8_t k, size_t p) : key(k), payload(p) {} in stable_test() function
50 void swap(stable_test &lhs, stable_test &rhs) in swap()
59 bool operator () (const stable_test &lhs, const stable_test &rhs) const in operator ()()
67 bool operator () (const stable_test &lhs, const stable_test &rhs) const in operator ()()
75 bool operator () (const stable_test &lhs, const stable_test &rhs) const in operator ()()
81 bool operator==(const stable_test &lhs, const stable_test &rhs) in operator ==()
98 struct is_even<stable_test>
100 bool operator () (const stable_test &t) const in operator ()()
107 typedef std::vector<stable_test> StableVec;
180 input.push_back(stable_test(data[i], i)); in stable_sort()
252 input.push_back(stable_test(data[i], i)); in stable_partition()
254 auto iter = std::stable_partition(working.begin(), working.end(), is_even<stable_test>()); in stable_partition()
256 if (!std::all_of (working.begin(), iter, is_even<stable_test>())) return 1; in stable_partition()
257 if (!std::none_of(iter, working.end(), is_even<stable_test>())) return 2; in stable_partition()