title: Iterator to last element in std::list
body: <pre><code>#include &lt;list&gt;
  using std::list;
  
  int main()
  {
      list &lt;int&gt; n;
      n.push_back(1);
      n.push_back(2);
      n.push_back(3);
  
      list &lt;int&gt;::iterator iter = n.begin();
      std::advance(iter, n.size() - 1); //iter is set to last element
  }
  </code></pre>
  
  <p>is there any other way to have an iter to the last element in list?</p>