absl::linked_hash_map::rehash

Rehashes the map so it can hold at least n elements without rehashing.

Synopsis

Declared in <absl/container/linked_hash_map.h>

void
rehash(size_t n);

Parameters

NameDescription
nThe minimum number of buckets to allocate.