Stack added + found bugs squashed

This commit is contained in:
2019-05-07 19:43:31 +02:00
parent 3edd654f60
commit c1e498dfa0
6 changed files with 99 additions and 6 deletions

View File

@@ -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)
{