My work is using STL <list> to implement a "linked list of linked list. For example a linked list of messages. Each message class will contain a linked list of packet. So how can i make doubly linked list in STL and do i need to create a class for packet which contain sequence number and text.
the STL list is a doubling linked list, but as you said you want a list of a list. I've seen it done with vectors, so I assume there's nothing stopping you from making: list<list<DataType> > myList;
Thx for help. But how to all element of linked list in side another one ? I means when i call linked list message, it will also call message's linked list such as packet linked list.