I try to do the following:
QList a; foreach(QString& s, a) { s += \"s\"; }
Which looks like it should be legitimate but
Maybe for your case:
namespace bl = boost::lambda; std::for_each(a.begin(),a.end(),bl::_1 += "s");