Skip to content

Commit

Permalink
Small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele A. Ron committed Sep 3, 2022
1 parent 73d7194 commit a17adbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/GRon/FibonacciHeap/template/FibonacciHeap.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void GRon::FibonacciHeap<T, Container, Compare>::insert(const T& key) {
return;
}

*_removed.back() = Node(key);
*_removed.back() = std::move(Node(key));
root_list.push_back(_removed.back());
_removed.pop_back();
}
Expand Down

0 comments on commit a17adbb

Please sign in to comment.