title: What is the difference between std::set and std::vector?
body: <p>I am learning STL now. I read about <code>set</code> container. I have question when you want to use <code>set</code>? After reading <a href="http://www.cplusplus.com/reference/stl/set/">description of set</a> it looks like it is useless because we can substitute it by <code>vector</code>. Could you say pros and cos for <code>vector</code> vs <code>set</code> containers. Thanks</p>