C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Floating an idea: unstable_remove_if and friends

From: Arthur O'Dwyer <arthur.j.odwyer_at_[hidden]>
Date: Thu, 30 Jan 2025 15:01:06 -0500
On Thu, Jan 30, 2025 at 2:34 PM Ted Lyngmo via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> Hi!
>
> I have an idea for a set of "unstable" erase/remove algorithms that will
> move at most as many elements for which the predicate returns true.
>

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0041r0.html
"Unstable remove algorithms" (2015). I know this was in front of SG14 many
years ago, but I don't know what happened to it; it predates the modern
GitHub-issue workflow for tracking papers (https://wg21.link/p0041/github
is a 404). Personally, I think it would be plausible to revive — I doubt it
failed for any particular technical reason.

You might like to compare/contrast your
https://github.com/TedLyngmo/liblyncpp/blob/main/include/lyn/algorithm.hpp
with
https://github.com/Quuxplusone/SG14/blob/master/include/sg14/algorithm_ext.h#L68-L130

–Arthur

Received on 2025-01-30 20:01:22