title: vector iterator parameter as template C++
body: <pre><code>template&lt;typename T&gt;
  void Merge_Sort(vector&lt;T&gt;::iterator begin, vector&lt;T&gt;::iterator end) {
  
  size_t length = end - begin;
  if (1 &gt;= length) return;
  
  size_t mid = length/2;
  
  Merge_Sort(begin, begin + mid);
  Merge_Sort(begin + mid, end);
  inplace_merge(begin, begin + mid, end);
  }
  </code></pre>
  
  <p>I am trying to template-ize the function but getting the error that I am missing the typename prior to vector::iterator. Could anybody have an idea about making this function template?</p>
  
  <p>To sum, I am trying to make iterator parameter as template.</p>