BloombergLP::bslalg::BidirectionalLinkListUtil::insertLinkAfterTarget

Insert the specified newNode after the specified target node in the linked list that contains target. If the node following target is 0, then set the nextLink attribute of newNode to 0. After successful execution of this function the values of the previousLink and nextLink attributes of all the links in the list appropriately reflect the operation. The behavior is undefined unless 0 != newNode and 0 != target. The behavior is also undefined unless 0 == target->nextLink() is true or isWellFormed(target, target->nextLink()) are true.

Synopsis

Declared in <bslalg_bidirectionallinklistutil.h>

static
void
insertLinkAfterTarget(
    BidirectionalLink* newNode,
    BidirectionalLink* target);