| 380 | } |
| 381 | |
| 382 | void TDigest::Merge(const std::vector<TDigest>& others) { |
| 383 | MergeInput(); |
| 384 | |
| 385 | std::vector<const TDigestImpl*> other_impls; |
| 386 | other_impls.reserve(others.size()); |
| 387 | for (auto& other : others) { |
| 388 | other.MergeInput(); |
| 389 | other_impls.push_back(other.impl_.get()); |
| 390 | } |
| 391 | impl_->Merge(other_impls); |
| 392 | } |
| 393 | |
| 394 | void TDigest::Merge(const TDigest& other) { |
| 395 | MergeInput(); |