From c54b4cbe07377e92df59dfb920951c8d72240e3f Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 23 Jun 2020 13:49:13 +0200 Subject: [PATCH] Add arraynd.clear() utility method. --- legacy/lol/math/arraynd.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/legacy/lol/math/arraynd.h b/legacy/lol/math/arraynd.h index 7d635a05..0c120ecb 100644 --- a/legacy/lol/math/arraynd.h +++ b/legacy/lol/math/arraynd.h @@ -236,6 +236,8 @@ public: resize_data(e); } + inline void clear() { resize(vec_t(0)); } + inline vec_t sizes() const { return vec_t(this->m_sizes);