title: How does an STL algorithm identify the container?
body: <p>How does an STL algorithm identify on what kind of container it is operating on?<br>
  For example, <code>sort</code> accepts iterators as arguments.<br>
  How does it know what kind of container it has to sort?</p>