vendredi 5 août 2016

Count elements in union of two sets using stl

I have two sets and I want to know how many elements there are at least in one set. It is a function set_union in <algorithm> which writes the union in another set, but I want only the number. Can I find it using stl without saving elements?

Aucun commentaire:

Enregistrer un commentaire