title: Printing vector of sets in c++
body: <p>Is there anyway to print a vector of sets easily? </p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;set&gt;
  #include &lt;vector&gt;
  
  int main ()
  {
    std::set&lt;int&gt; myset;
    std::vector&lt;std::set&lt;int&gt; &gt; setVector;
    int myints[] = {5,10,15};
    int elementCount = sizeof(myints) / sizeof(myints[0]);
    myset.insert(myints, myints + elementCount);
    setVector.push_back(myset);
    std::cout &lt;&lt; "Elements in vector: " &lt;&lt; setVector.size() &lt;&lt; " \n";
  }
  </code></pre>
  
  <p>I have added the set to the vector, is there anyway to print it out? </p>
  
  <p>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</p>
  
  <p>Thank you</p>