title: linked-list in C++ how to go to "next element" using STL list
body: <p>I have a very basic question. I want to use STL's list instead of creating my own linked-list ( my code is shown below)</p>
  
  <pre><code>struct myList
  {
  
      myList *next;
      myList *previous;
  };
  
  myList-&gt;next = NULL;
  </code></pre>
  
  <p>Using STL list:</p>
  
  <pre><code>#include &lt;list&gt;
  
  std::list&lt;int&gt; L;
  L.push_back(1);
  </code></pre>
  
  <p>My question is, how to access the "next" element in STL's list?</p>