C++: Difference between revisions

244 bytes added ,  22 May 2020
Line 471: Line 471:


====std::list====
====std::list====
This is a doubly linked list. You can delete elements from the middle of the list if you
<syntaxhighlight lang="cpp">
list<int> m_list;
list<int>::iterator m_it = m_list.insert(5);
// Remove the element
m_list.erase(m_it);
</syntaxhighlight>


===Container adaptors===
===Container adaptors===