title: C# generics compared to C++ templates
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/31693/what-are-the-differences-between-generics-in-c-and-java-and-templates-in-c">What are the differences between Generics in C# and Java&hellip; and Templates in C++?</a>  </p>
  </blockquote>
  
  <p>What are the differences between C# generics compared to C++ templates? I understand that they do not solve exactly the same problem, so what are the pros and cons of both?</p>