inital nfc code

This commit is contained in:
2022-03-09 10:24:23 +01:00
parent 395c9f3e2c
commit a08c8e447f
13 changed files with 1091 additions and 19 deletions

View File

@ -59,7 +59,7 @@ public:
bool push_back(const T in)
{
if( remainingCapacity() != 0)
if(remainingCapacity() != 0)
{
array[stored] = in;
++stored;
@ -70,13 +70,13 @@ public:
bool erase(size_t position)
{
if(position > stored)
return false;
array[position].~T();
--stored;
for( size_t i = position; i < stored; i++ )
memcpy(&array[i], &array[i+1], sizeof(T));
return true;
if(position > stored)
return false;
array[position].~T();
--stored;
for( size_t i = position; i < stored; i++ )
memcpy(&array[i], &array[i+1], sizeof(T));
return true;
}
void clear()