78std::pair<Iter, Iter>
gather(Iter first, Iter last, Iter
pivot, Pred pred) {
81 return std::make_pair(
82 std::stable_partition(
84 std::bind(std::logical_not<bool>(), std::bind(pred, std::placeholders::_1))),
85 std::stable_partition(
pivot, last, std::bind(pred, std::placeholders::_1)));
std::pair< Iter, Iter > gather(Iter first, Iter last, Iter pivot, Pred pred)
iterator-based gather implementation