Stack added + found bugs squashed
This commit is contained in:
@@ -26,7 +26,7 @@ private:
|
||||
std::size_t size;
|
||||
|
||||
public:
|
||||
void Append(T const value)
|
||||
void Append(T const & value)
|
||||
{
|
||||
if(size == 0)
|
||||
{
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
++size;
|
||||
}
|
||||
|
||||
void Prepend(T const value)
|
||||
void Prepend(T const & value)
|
||||
{
|
||||
if(size == 0)
|
||||
{
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
++size;
|
||||
}
|
||||
|
||||
void Insert(T const value, std::size_t const index)
|
||||
void Insert(T const & value, std::size_t const index)
|
||||
{
|
||||
if(index >= size)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user