Lines Matching refs:IsOdd
69 bool IsOdd(int x) { return x % 2 != 0; } in IsOdd() function
531 absl::c_is_partitioned(std::vector<int>{1, 3, 5, 2, 4, 6}, IsOdd)); in TEST()
533 absl::c_is_partitioned(std::vector<int>{1, 2, 3, 4, 5, 6}, IsOdd)); in TEST()
535 absl::c_is_partitioned(std::vector<int>{2, 4, 6, 1, 3, 5}, IsOdd)); in TEST()
540 absl::c_partition(actual, IsOdd); in TEST()
542 return absl::c_is_partitioned(c, IsOdd); in TEST()
548 absl::c_stable_partition(actual, IsOdd); in TEST()
556 back_inserter(evens), IsOdd); in TEST()
565 auto middle = absl::c_partition_point(initial, IsOdd); in TEST()
712 absl::c_replace_if(actual, IsOdd, 0); in TEST()
780 absl::c_replace_copy_if(initial, back_inserter(actual), IsOdd, 0); in TEST()
819 IsOdd); in TEST()