dimanche 1 janvier 2017

Move elements from std::multiset

Is there anyway to move an element out of a std::multiset?

Since C++11 std::multiset::iterator is defined as a const bidirectional_iterator. I understand the reasoning is for keeping the elements sorted, but there seems to be no way to remove and then modify move only objects.

Aucun commentaire:

Enregistrer un commentaire