#pragma once #include namespace PortabilityLayer { class ArrayTools { public: template static void RemoveFromArray(T *arr, TSize &count, TIndex index) { TSize countCopy = count; countCopy--; if (countCopy != index) arr[index] = arr[countCopy]; count = static_cast(countCopy); } }; }