DEFINITION - SUB
Insert list&, node&, pred& -- insert a (Min)ListNode& into a list
OPERATION
Insert a (Min)ListNode& into a doubly linked list after a given node
position. Insertion at the head of a list is possible by passing a
zero value for pred&, though the SUB AddHead is slightly faster for
that special case.
ARGUMENTS
list& -- pointer to the target (Min)ListHeader&
node& -- pointer to the (Min)ListNode& to insert
pred& -- pointer to the (Min)ListNode& after which to insert
NOTES
The pred& argument represents a node& here too.
SEE ALSO
Insertion and Removal
Back to Function Reference