title: Where are the headers of the C++ standard library
body: <p>I wonder where on my file system I find the headers of the C++ Standard library.  In particular I am looking for the definition of the vector template.  I searched in /usr/include/ and various subdirectories.  I also tried 'locate vector.h' which brought up many implementations of vectors, but not the standard one.  What am I missing?  (The distribution is Gentoo)</p>
  
  <p>Background: I'm profiling a library that iterates over vector's most of the time and gprof shows that most of the time is spent in </p>
  
  <pre><code>std::vector&lt;int, std::allocator&lt;int&gt; &gt;::_M_insert_aux(
    __gnu_cxx::__normal_iterator&lt;int*, std::vector&lt;
        int, std::allocator&lt;int&gt; &gt; &gt;, int const&amp;)
  </code></pre>
  
  <p>Probably this is what happens internally on a std::vector::push_back, but I'm not sure.</p>