mercredi 4 mai 2016

copy MAP container to the end of X

Suppose that m has type map<int, string>, and we encounter a call to

copy(m.begin(), m.end(), back_inserter(x)).

What can we say about the type of x?

Please throw me an example if copy(m.begin(), m.end(), back_inserter(x)) would be leagal. Thanks

Aucun commentaire:

Enregistrer un commentaire