Boost logo

Boost :

From: Mark Rodgers (mark.rodgers_at_[hidden])
Date: 2001-12-12 13:46:40


From: "Peter Dimov" <pdimov_at_[hidden]>
> Because it's not a push_back.
>
> push_back(c, v) is a mutating operation on c. After it c has one
> additional element pushed to its back, v.
>
> append(a, b) is a pure function that returns the concatenation of a and b.

I see your point but I think "harmful" is perhaps a little strong. I will
concede though that the advantage of reusing "push_back" is more open to
debate than some of the other examples.

Personally, I still favour push_back.

Mark


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk