I\'m trying to code opposite action to this:
std::ostream outs; // properly initialized of course std::set my_set; // ditto outs << my_set.
Or you could do this:
my_set.insert(std::istream_iterator(ins), std::istream_iterator());