std::list<>::remove_if and std::mem_fun_ref reduce heap::gc to a one-liner.