Set (ADT)

Feb 11, 2017 at 8:09pm
Hello ! I'm coding the ADT for sets. I'm using a vector of strings as the main structure but i have a lot of trouble coding the union function. Does anybody have any links or an ADT already made so I can be helped ? Thank you.
Feb 12, 2017 at 3:57am
Details of std::set-union here:http://www.cplusplus.com/reference/algorithm/set_union/
So sort your two std::vector<std::string> and then apply the input and output iterators according to the the function template in the link
Topic archived. No new replies allowed.