Create a table having the same value, hasher, and key‐equality comparator as the specified original object by moving the contents of original to the new table, and using the specified basicAllocator to supply memory. Use a copy of original.hash_function() to generate hash values for the entries contained in this table. Use a copy of original.key_eq() to verify that the keys of two entries are equal. This method requires that the (template parameter) type ENTRY be move‐insertable into this FlatHashTable. If basicAllocator is 0, the currently installed default allocator is used. If original and the newly created object have the same allocator then the value of original becomes unspecified but valid, and no exceptions will be thrown; otherwise original is unchanged (and an exception may be thrown).
Synopsis
Declared in <bdlc_flathashtable.h>
FlatHashTable(
bslmf::MovableRef<FlatHashTable> original,
bslma::Allocator* basicAllocator);
Created with MrDocs