Przeglądaj źródła

core: Append() was missing for arrays of single element structs.

legacy
Sam Hocevar sam 13 lat temu
rodzic
commit
56d7f24a37
1 zmienionych plików z 5 dodań i 0 usunięć
  1. +5
    -0
      src/array.h

+ 5
- 0
src/array.h Wyświetl plik

@@ -225,6 +225,11 @@ public:
return *this; return *this;
} }


inline void Append(T1 const &x)
{
*this += x;
}

void Remove(int pos) void Remove(int pos)
{ {
memmove(m_data + pos, m_data + pos + 1, m_count - pos - 1); memmove(m_data + pos, m_data + pos + 1, m_count - pos - 1);


||||||
x
 
000:0
Ładowanie…
Anuluj
Zapisz