mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +00:00
Add HashTable::reserve() (for preallocated hashed/sparse_hashed dictionaries)
This commit is contained in:
parent
35165c8ea4
commit
f4f79aa84a
@ -850,6 +850,11 @@ protected:
|
||||
|
||||
|
||||
public:
|
||||
void reserve(size_t num_elements)
|
||||
{
|
||||
resize(num_elements);
|
||||
}
|
||||
|
||||
/// Insert a value. In the case of any more complex values, it is better to use the `emplace` function.
|
||||
std::pair<LookupResult, bool> ALWAYS_INLINE insert(const value_type & x)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user