I have a very basic question. I want to use STL's list instead of creating my own linked-list ( my code is shown below)
struct myList
{
myList *next;
myList *previous;
};
myList->next = NULL;
Using STL list:
#include <list>
std::list<int> L;
L.push_back(1);
My question is, how to access the "next" element in STL's list?