Skip to content

Commit

Permalink
push_back -> emplace_back
Browse files Browse the repository at this point in the history
  • Loading branch information
Morwenn committed Apr 24, 2022
1 parent 5c9dabf commit 12cfa60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/gfx/timsort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ template <typename RandomAccessIterator, typename Compare> class TimSort {
~TimSort() {}

void pushRun(iter_t const runBase, diff_t const runLen) {
pending_.push_back(run<iter_t>(runBase, runLen));
pending_.emplace_back(runBase, runLen);
}

void mergeCollapse(Compare compare) {
Expand Down

0 comments on commit 12cfa60

Please sign in to comment.