I'm trying to follow the advice given, among other place, here to avoid raw loops and use std::algorithm instead. So I would be thankful if you could help me do that, if possible, in the following case:
std::stringstream ss;
std::vector<Object> v;
for (const auto& curr : v) { ss << curr.ToString() << '\n'}
return ss.str()
Aucun commentaire:
Enregistrer un commentaire