mirror of https://github.com/xfarrow/lasd.git
Library 1
This commit is contained in:
parent
64e7c6bcd1
commit
05da596510
|
@ -167,7 +167,7 @@ void List<Data>::InsertAtBack(const Data& data){
|
||||||
template <typename Data>
|
template <typename Data>
|
||||||
void List<Data>::InsertAtBack(Data&& data){
|
void List<Data>::InsertAtBack(Data&& data){
|
||||||
if(size == 0){
|
if(size == 0){
|
||||||
InsertAtFront(data);
|
InsertAtFront(std::move(data));
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
struct Node* last = new Node(std::move(data));
|
struct Node* last = new Node(std::move(data));
|
||||||
|
|
Loading…
Reference in New Issue