
18 Apr
2005
18 Apr
'05
8:25 a.m.
if you want to use the std::merge algorithm: set<int> c; std::merge(a.begin(), a.end(), b.begin(),b.end(),std::inserter(c, c.end()); but there is a simpler way to do it: set<int> c(a); //copy c'tor c.insert(b.begin(),b.end()); eyal. -----Original Message----- From: zlf [mailto:zlfcn@hotmail.com] Sent: Monday, April 18, 2005 6:52 AM To: boost@lists.boost.org Subject: [boost] How to merge set<int> Hi, I have to sets(set<int> a,b). How to use function [merge] to merge the two sets to another one(set<int> c)? thx zlf _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost