title: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::_List_iterator<int>’)
body: <p>Hello im trying to print a list of ints and i keep getting that erro.</p>
  <p>I have a structure that have a list on it.</p>
  <pre><code>struct faceFiguration{
  
      int faceID;
      list&lt;int&gt; setofVertices;
  
  };
  </code></pre>
  <p>And i have a list of that sructure</p>
  <pre><code> list&lt;faceFiguration&gt; pattern;
  </code></pre>
  <p>and heres where i get confuse, i trie to print the lists here:</p>
  <pre><code>void PrintFaces(){
  
        currentFace = pattern.begin();
        while(currentFace != pattern.end()){
  
          cout &lt;&lt; currentFace -&gt; faceID &lt;&lt; endl;
  
          for(auto currentVertices = currentFace-&gt;setofVertices.begin(); currentVertices != currentFace-&gt;setofVertices.end(); currentVertices++){
  
            cout &lt;&lt; currentVertices;
  
          }
  
          cout &lt;&lt; '\n';
          currentFace++;
        }
  
      }
  
  </code></pre>
  <p>This is the full message error</p>
  <p><code>error: no match for ‘operator&lt;&lt;’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream&lt;char&gt;’} and ‘std::__cxx11::list&lt;int&gt;’)</code></p>