Boost logo

Boost :

Subject: Re: [boost] [EXTERNAL] New algorithm in Boost.Algorithm: "gather" -- looking for comments
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2013-01-24 11:26:56

On Jan 22, 2013, at 10:27 PM, Andrey Semashev <andrey.semashev_at_[hidden]> wrote:

> Also, std::remove looks similar to gather when the gathered elements
> are put to the end of the sequence.

it does look similar but..

std::remove does not have the requirement to preserve all the entries in the sequence.
std::remove can leave the "removed" entries in an unknown state (overwritten? moved from? copied?)

Otherwise you could just write std::remove as std::stable_partition ;-)

-- Marshall

Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki

Boost list run by bdawes at, gregod at, cpdaniel at, john at