Add doubly-linked list

DList is an adjusted copy of SList. Missing:
* insertBack
* insertAfter
* removeBack
This commit is contained in:
Eugen Wissner 2017-05-15 19:50:20 +02:00
parent 32e19c8b58
commit 357c7e279d
2 changed files with 944 additions and 43 deletions

View File

@ -14,9 +14,18 @@ module tanya.container.entry;
package struct SEntry(T)
{
/// Item content.
// Item content.
T content;
/// Next item.
// Next item.
SEntry* next;
}
package struct DEntry(T)
{
// Item content.
T content;
// Previous and next item.
DEntry* next, prev;
}

File diff suppressed because it is too large Load Diff