Lists
Explore the std::list sequential container in C++ and understand its features such as no random access, fast element insertion and removal, and unique methods for merging, removing, and splicing elements. Learn how to manage data efficiently using this double linked list.
We'll cover the following...
We'll cover the following...
std::list is a doubled linked list. std::list needs the header <list>.
Although it has a similar interface to std::vector or std::deque, std::list is quite different to both of them. That’s due to its structure.
std::list makes the following points unique:
- It supports no random access.