de" content="46.62864969752069"/><meta name="longitude" content="13.82445467733758"/><meta name="source" content="desktop.mac"/><meta name="updated" content="2015-08-21 19:17:23 +0000"/><title>Avoid in-place modification in set and multiset</title></head><body>
<div>std::sets return const_iterators, always. its iterator is a typedef for const_iterator, so you can’t modify a value. However, you may have the situation where you’d like to modify an attribute of an item stored inside the set that does not a