Advertisement
Alaricy

Печать итератора контейнера

Dec 16th, 2022
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. template <typename It>
  2. void PrintRange(It range_begin, It range_end)
  3. {
  4.     It itr=range_begin;
  5.     while (itr!=range_end){
  6.     cout << *itr <<" ";
  7.     itr++;
  8.     }
  9.     cout << endl;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement