dmd.backend.dlist
Interface to the C linked list type.
Discussion
List is a complete package of functions to deal with singly linked lists of pointers or integers.
Features:
- Uses mem package.
- Has loop-back tests.
- Each item in the list can have multiple predecessors, enabling different lists to 'share' a common tail.
License
Source:
backend/dlist
.d
-
Declaration
nothrow @nogc @safe list_t
list_link
(list_tlist
);Create link to existing
list
, that is, share thelist
with somebody else.Return Value
pointer to that
list
entry. -
Declaration
nothrow @nogc @safe list_t
list_next
(list_tlist
);Return Value
pointer to next entry in
list
. -
Declaration