[#BloombergLP-bslalg-HashTableBucket-setFirstAndLast]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/HashTableBucket.adoc[HashTableBucket]::setFirstAndLast
:relfileprefix: ../../../
:mrdocs:

Set `first` and `last` to the specified values&period;

== Synopsis

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

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

== Description

Behavior is undefined unless `first &equals;&equals; last`, or unless `first` and `last` are links from the same list, where `first` precedes `last` in the list&period; Note that `first` and `last` may both have a null pointer value, indicating an empty bucket&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *first*
| new first element of this bucket
| *last*
| new last element of this bucket
|===


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