Jūs esate

C++ List

I was looking for analogue of ArrayList (or List) datatype in C++ and I found today: STL List :)

Take a look over here: http://www.cplusplus.com/reference/stl/list/


Yep, take a look: "List containers are implemented as doubly-linked lists". std::list is a double LINKED list, it is not an analog of ArrayList/List. Interesting, who was such an idiot and called vectors (or arrays) with the word "List" in Java/C#?

What you are looking for is std::vector.

Hey ;) Thanks for the comment ;)