Browse Source

Add arraynd.clear() utility method.

pull/1/head
Sam Hocevar 4 years ago
parent
commit
c54b4cbe07
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      legacy/lol/math/arraynd.h

+ 2
- 0
legacy/lol/math/arraynd.h View File

@@ -236,6 +236,8 @@ public:
resize_data(e);
}

inline void clear() { resize(vec_t<int, N>(0)); }

inline vec_t<int, N> sizes() const
{
return vec_t<int, N>(this->m_sizes);


Loading…
Cancel
Save