How to use typename in c++? <p>I have read the book named C++ primer and I don't understand the following code:</p> <pre><code>typedef typename std::vector&lt;int&gt;::size_type size_type; </code></pre> <p>Could you help me explain the use of <code>typename</code> here?</p>