Skip to content

Commit 8e98b8b

Browse files
committed
Remove shrink_to_fit() from collection utils.
1 parent 7287503 commit 8e98b8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/bitcoin/system/impl/data/collection.ipp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ constexpr void distinct(Collection& list) NOEXCEPT
188188
{
189189
std::sort(std::begin(list), std::end(list));
190190
list.erase(std::unique(std::begin(list), std::end(list)), std::end(list));
191-
list.shrink_to_fit();
191+
////list.shrink_to_fit();
192192
}
193193

194194
template <typename Collection>
@@ -222,7 +222,7 @@ inline Left difference(const typename Left::const_iterator& begin,
222222
if (!contains(right, *min))
223223
copy.push_back(*min);
224224

225-
copy.shrink_to_fit();
225+
////copy.shrink_to_fit();
226226
return copy;
227227
}
228228

0 commit comments

Comments
 (0)