Boost logo

Boost :

Subject: [boost] [assignment] += for containers on right side
From: Jochen Wilhelmy (jochen.wilhelmy_at_[hidden])
Date: 2012-07-19 12:00:42


Hi!

is it possible to make += also work for containers on right side?
i.e.
int a;
std::vector<int> b;
std::list<int> c;
std::vector<int> d;
d += a,b,c,d;

this would be similar to strings where += at least works with one string
on the right side.

-Jochen


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