mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Updated HashMap functions
This commit is contained in:
parent
cac4a85286
commit
6e3efee28c
@ -252,7 +252,7 @@ public:
|
||||
if (this->hasZero())
|
||||
{
|
||||
auto * zero_value = this->zeroValue();
|
||||
std::forward<Func>(func)(zero_value->getKey(), zero_value->getMapped());
|
||||
func(zero_value->getKey(), zero_value->getMapped());
|
||||
}
|
||||
|
||||
size_t buf_size = this->grower.bufSize();
|
||||
@ -262,7 +262,7 @@ public:
|
||||
if (it->isZero(*this))
|
||||
continue;
|
||||
|
||||
std::forward<Func>(func)(it->getKey(), it->getMapped());
|
||||
func(it->getKey(), it->getMapped());
|
||||
}
|
||||
}
|
||||
|
||||
@ -272,7 +272,7 @@ public:
|
||||
{
|
||||
forEachValue([&](auto &, auto & mapped)
|
||||
{
|
||||
std::forward<Func>(func)(mapped);
|
||||
func(mapped);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user