Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <typename It>
- void PrintRange (It begin, It end){
- bool flag = true;
- for (auto it = begin; it != end; ++ it) {
- if (flag){
- std::cout << *it;
- flag = false;
- } else {
- std::cout << ", " << *it;
- }
- }
- std::cout << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement