Creating a Set in C++ STL

Set is a container that is used to store the values which are unique i.e no value in a set can be repeated and no value can be repeated. If you want to edit the value added by you the only way is to remove the wrong element and add the correct one.

This is a companion discussion topic for the original entry at