STL: set_union() [Resolved]

Write here if you have problems with your C++ source code

Moderator: Board moderators

Post Reply
bugzpodder
Experienced poster
Posts: 147
Joined: Fri Jun 13, 2003 10:46 pm

STL: set_union() [Resolved]

Post by bugzpodder »

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?
Last edited by bugzpodder on Fri Sep 26, 2003 3:04 am, edited 1 time in total.
Viktoras Jucikas
New poster
Posts: 22
Joined: Sun Oct 20, 2002 6:41 pm
Location: Lithuania
Contact:

Post by Viktoras Jucikas »

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/)
Post Reply

Return to “C++”