Posted By

DrPepper on 09/25/11


Tagged


Versions (?)

Iterator


 / Published in: C++
 

  1. template<typename InputIterator>
  2. void printall(InputIterator first, InputIterator last)
  3. {
  4. for(; first != last; ++first)
  5. {
  6. std::cout << *first << std::endl;
  7. }
  8. }

Report this snippet  

You need to login to post a comment.