mirror of
https://github.com/xfarrow/lasd.git
synced 2025-06-05 21:49:14 +02:00
Library 1
This commit is contained in:
@@ -167,7 +167,7 @@ void List<Data>::InsertAtBack(const Data& data){
|
||||
template <typename Data>
|
||||
void List<Data>::InsertAtBack(Data&& data){
|
||||
if(size == 0){
|
||||
InsertAtFront(data);
|
||||
InsertAtFront(std::move(data));
|
||||
}
|
||||
else{
|
||||
struct Node* last = new Node(std::move(data));
|
||||
|
Reference in New Issue
Block a user