Is there anyway to print a vector of sets easily?
#include <iostream>
#include <set>
#include <vector>
int main ()
{
std::set<int> myset;
std::vector<std::set<int> > setVector;
int myints[] = {5,10,15};
int elementCount = sizeof(myints) / sizeof(myints[0]);
myset.insert(myints, myints + elementCount);
setVector.push_back(myset);
std::cout << "Elements in vector: " << setVector.size() << " \n";
}
I have added the set to the vector, is there anyway to print it out?
This is just a proof of concept, eventually I will add many more sets to this vector, so ideally I will need to print from the beginning of the vector to the end
Thank you