Hi,
i have two sets s1 and s2. i want to produce a new set s, that is the union of s1,s2. it would make sense to use set_union(s1.begin(),s1.end(),s2.begin(),s2.end(),...)
whats the 5th parameter should be?
STL: set_union() [Resolved]
Moderator: Board moderators
-
- Experienced poster
- Posts: 147
- Joined: Fri Jun 13, 2003 10:46 pm
STL: set_union() [Resolved]
Last edited by bugzpodder on Fri Sep 26, 2003 3:04 am, edited 1 time in total.
-
- New poster
- Posts: 22
- Joined: Sun Oct 20, 2002 6:41 pm
- Location: Lithuania
- Contact:
This should be iterator to the beginning of the storage where union of these two sets will be placed to. See your favourite STL vendor documentation for more details (or alternatively try this: http://www.sgi.com/tech/stl/)