[#BloombergLP-bslalg-BidirectionalLinkListUtil-unlink]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/BidirectionalLinkListUtil.adoc[BidirectionalLinkListUtil]::unlink
:relfileprefix: ../../../
:mrdocs:

Unlink the specified `node` from its bidirectional linked list&period;

== Synopsis

Declared in `&lt;bslalg&lowbar;bidirectionallinklistutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
unlink(xref:BloombergLP/bslalg/BidirectionalLink.adoc[BidirectionalLink]* node);
----

== Description

Unlink the specified `node` from the linked list of which it is a member&period; After successful execution of this function the values of the `previousLink` and `nextLink` attributes of all the links in the origin and destination lists appropriately reflect the operation Note that this method does _not_ change the value for the `nextLink` and `previousLink` attributes of `node`&period; The behavior is undefined unless `!node&hyphen;&gt;previousLink()`, `!node&hyphen;&gt;nextLink()`, or `isWellFormed(node&hyphen;&gt;previousLink(), node&hyphen;&gt;nextLink())` are true&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *node*
| node to remove from the list
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
