title: find in std::list
body: <p>Hi I am getting compilation error from the following code. I am not able to figure out:</p>
  
  <pre><code>g++ stl_list_1.cc
  stl_list_1.cc: In function \u2018int main()\u2019:
  stl_list_1.cc:16: error: \u2018struct std::_List_iterator&lt;int&gt;\u2019 has no member named \u2018clist\u2019
  stl_list_1.cc:19: error: \u2018struct std::_List_iterator&lt;int&gt;\u2019 has no member named \u2018clist\u2019
  stl_list_1.cc:25: error: no match for call to \u2018(std::list&lt;std::_List_const_iterator&lt;int&gt;, std::allocator&lt;std::_List_const_iterator&lt;int&gt; &gt; &gt;) (int&amp;)\u2019
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;list&gt;
  #include &lt;algorithm&gt;
  using namespace std;
  
  main()
  {
      std::list&lt;int&gt; clist;
      for (int i =0; i&lt;10; i++)
      {
          clist.push_back(i);
      }
  
      std::list&lt;std::list&lt;int&gt;::const_iterator&gt; list1;
  
      std::list&lt;int&gt;::iterator itr1;
      itr1 = std::find(clist.begin().clist.end(),1);
      std::list&lt;int&gt;::iterator itr2 ;
  
      itr2 = std::find(clist.begin().clist.end(),7);
  
      list1.push_back(itr1);
      list1.push_back(itr2);
  
      for(int j =0; j&lt; list1.size(); j++)
      {
         int k = *list1[j];
         std::cout &lt;&lt; "cvalue " &lt;&lt; k &lt;&lt;std::endl;
         j++;
       }
  }
  </code></pre>
  
  <p>Thanks
  Ruchi </p>