title: how to query if(T==int) with template class
body: <p>When I'm writing a function in a template class how can I find out what my T is?</p>
  
  <p>e.g.</p>
  
  <pre><code>template &lt;typename T&gt;
  ostream&amp; operator &lt;&lt; (ostream &amp;out,Vector&lt;T&gt;&amp; vec)
  {
  if (typename T == int)
  }
  </code></pre>
  
  <p>How can I write the above if statement so it works?</p>