lundi 4 février 2019

How do you perform transformation to each element and append the result in c++?

I have a set of integers {1,2}. I want to produce "Transform#1, Transform#2" where each element is tranformed and then result is accumulated with a delimiter.

What would be the easiest way to accomplish this? Do we have "folds", "maps" in c++?

We dont use boost.

Aucun commentaire:

Enregistrer un commentaire