title: template in cpp
body: <p>I hav a following piece of code in a module. </p>
  
  <p>Controller is the name of the class.
  allocate_route is the member function of it.</p>
  
  <p>While defining the member function it is given as</p>
  
  <pre><code>template&lt;UI num_ip&gt;
  void Controller&lt;num_ip&gt;::allocate_route()
  {
  }
  </code></pre>
  
  <p>UI is Unsigned Integer. <code>num_ip</code> is not defined any where. He also has not used <code>num_ip</code> anywhere inside the code. What does he tell to the compiler by this statement. Am not able to comprehend the use of templates here. Wat does this code do?</p>