title: Template function with template argument parametrized over int
body: <p>Without using the features of C++11 and higher (I will accept them but would prefer C++98),</p>
  <p>I have to write a template function with argument T which is an STL container of <code>int</code>s. It receives such a container along with another <code>int</code> which it tries to search for,</p>
  <p>Right now I have this but it doesn't compile:</p>
  <pre class="lang-cpp prettyprint-override"><code>template &lt;template&lt;int&gt; class T&gt;
  T::iterator easyfind(T &amp;container, int val)
  {
      T::iterator it = container.begin();
      for ( ; it != container.end(); it++)
          if (val == *it)
              break ;
      return (it);
  }
  </code></pre>
  <p>I wonder if I can somehow force the <code>T</code> parameter to always be a class template that is parametrized over integers... I tried writing <code>T&lt;int&gt;</code> but it still doesn't compile.</p>