title: C++ : syntax for passing iterator to a function?
body: <p>I am making a class which is a kind of container and I would like to make a constructor that can take a "first" and "last" iterator like std::vector and other standard containers. What would be the correct syntax ? (I want a template a function that can take any first/last iterator types available (like the standard library I think). Thank you very much !</p>
  
  <p>As an example, I want something like that :</p>
  
  <pre><code>template&lt;class ...&gt; MyClass(... first, ... last) 
  </code></pre>
  
  <p>But what are the ... ?</p>
  
  <p>Thank you very much.</p>
  
  <p>Regarding the first answer :
  I want a specific constructor that takes iterators as argument (because I have already constructors that take values and pointers as arguments)</p>
  
  <p>EDIT :
  Is something like this ok ?</p>
  
  <pre><code>template&lt;class T1, class T2&gt; MyClass(std::iterator&lt;T1, T2&gt; first, std::iterator&lt;T1, T2&gt; last)
  </code></pre>