C++ STL – Lists

0
49

Lists are sequence containers based on doubly linked list data structure concept that allow non-contiguous memory allocation.

As compared to vector, the list has slow traversal, but once a position has been found, insertion and deletion are quick.

“STL List” is “Doubly Linked List” while “STL Forward List” is “Singly Linked List”

Header file is <list> which provides list related features.

Declaring list

list<int> int_list;

this is a int_list list object.

Previous articleLinux Commands
Next articleCloth Detergent
Vishal Bhandari is an admin, editor and writer of this portfolio. He writes about himself, his interests, hobbies, activities. He manages many articles about tech, finance, history and geopolitics on his portfolio.

LEAVE A REPLY

Please enter your comment!
Please enter your name here