title: template with bool parameter
body: <p>I need to implement template with bool parameter.
  If bool=true, we need to use list container else we need to use vector container.</p>
  <pre><code>template &lt;bool isList&gt;
  </code></pre>
  <p>How can I do it?</p>