title: Switch passed type from template
body: <p>Is it possible in C++ to check the type passed into a template function? For example:</p>
  
  <pre><code>template &lt;typename T&gt;
  void Foo()
  {
     if (typeof(SomeClass) == T)
        ...;
     else if (typeof(SomeClass2) == T)
        ...;
  }
  </code></pre>