istream-iterator

    8熱度

    9回答

    我試圖代碼相反的動作這樣的: std::ostream outs; // properly initialized of course std::set<int> my_set; // ditto outs << my_set.size(); std::copy(my_set.begin(), my_set.end(), std::ostream_iterator<int>(outs));