samedi 30 janvier 2016

Destruction via const iterators in C++11

Take http://ift.tt/1tl2KTy for an example. Why have the signatures changed from using non-const iterators to const-iterators given that the operation does modify the container via the supplied iterator?

I thought that was the definition of what non-const iterators were for. What is the reasoning behind the change?

Aucun commentaire:

Enregistrer un commentaire