Let say we have
struct A {...}; struct B {...}; struct C {...};
And we define a container of objects that hold these three structures:
struct Whole { A a; B b; C c; };
multi_index_container
container;
As you can see only a and b are the keys, c is just a member.
Let's also say that we've got an iterator "it" pointing to an element
in the container
(through what index the iterator has been retrieved is immaterial at
this point).
And we want to modify "c" member of that element.
Is this safe:
*const_cast