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:

  1. Uses mem package.
  2. Has loop-back tests.
  3. Each item in the list can have multiple predecessors, enabling different lists to 'share' a common tail.

Authors

Walter Bright

Source: backend/dlist.d

  • Declaration

    nothrow @nogc @safe list_t list_link(list_t list);

    Create link to existing list, that is, share the list with somebody else.

    Return Value

    pointer to that list entry.

  • Declaration

    nothrow @nogc @safe list_t list_next(list_t list);

    Return Value

    pointer to next entry in list.

  • Declaration