Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
emplace_back -> push_back in dd::DistancePositionListIndex
Browse files Browse the repository at this point in the history
p-senichenkov committed Jan 13, 2025

Verified

This commit was signed with the committer’s verified signature.
gtca Danila
1 parent a39e86e commit 20ad501
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ void DistancePositionListIndex::AddValue(T&& value) {
auto&& [it, is_value_new] =
value_mapping_.try_emplace(std::forward<T>(value), next_cluster_index_);
if (is_value_new) {
clusters_.emplace_back(cur_tuple_index_, 0);
clusters_.push_back({cur_tuple_index_, 0});
++next_cluster_index_;
}
++clusters_[it->second].size;

0 comments on commit 20ad501

Please sign in to comment.