What is the OutputIterator used for the std::set container?
|
1 answer
std::inserter works std::inserter :
std::vector<int> from = { 1, 2, 3 }; std::set<int> to; std::copy(begin(from), end(from), std::inserter(to, begin(to))); Check: http://ideone.com/zJDUsv
|
setcontainer - abvgdstd::insert_iteratordoes not roll? - VladDinserter(S), whereS— container name — does not work - abvgd