auto ints = istringstream{"0 1 2 3 4"}; ranges::copy(istream_view<int>(ints), ostream_iterator<int>{cout, "-"}); // prints 0-1-2-3-4-