mirror of
https://github.com/xfarrow/lasd.git
synced 2025-06-05 21:49:14 +02:00
Library 5
This commit is contained in:
@ -52,7 +52,7 @@ void StackLst<Data>::Push(const Data& element){
|
||||
|
||||
template <typename Data>
|
||||
void StackLst<Data>::Push(Data&& element) noexcept{
|
||||
List<Data>::InsertAtFront(element);
|
||||
List<Data>::InsertAtFront(std::move(element));
|
||||
}
|
||||
|
||||
template <typename Data>
|
||||
|
@ -44,7 +44,7 @@ StackVec<Data>& StackVec<Data>::operator=(const StackVec<Data>& copyFrom){
|
||||
template <typename Data>
|
||||
StackVec<Data>& StackVec<Data>::operator=(StackVec<Data>&& moveFrom) noexcept{
|
||||
Vector<Data>::operator=(std::move(moveFrom));
|
||||
stackSize = moveFrom.Size();
|
||||
std::swap(stackSize, moveFrom.stackSize);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user