[#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. == Synopsis Declared in `<bslalg_hashtablebucket.h>` [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 == last`, or unless `first` and `last` are links from the same list, where `first` precedes `last` in the list. Note that `first` and `last` may both have a null pointer value, indicating an empty bucket. == 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]#