title: Templates in C++: (F-)bounded polymorphism
body: <p>I have been checking on the intrnet for a while and haven found any answer for my question.
  I would like to know if C++ supports bounded polymorphism, and/or F-bounded polymorphism.</p>
  
  <p>For instance, in Java programmers can do this (boundedn polymorphism):</p>
  
  <pre><code>&lt;T extends Car&gt; void startEngine(T c) {/*body method*/}
  </code></pre>
  
  <p>and this (F-Bounded polymorphism):</p>
  
  <pre><code>&lt;T extends Comparable&lt;T&gt;&gt; void compareWith(T c) {/*body method*/}
  </code></pre>
  
  <p>Is anything equivalent in C++?</p>
  
  <p>Thanks!</p>