Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<typename t_it>
- void print_collection(t_it begin, t_it end)
- {
- for_each(begin, end, [] (const decltype(*t_it)& elem) { cout << elem; });
- cout << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement