diff options
author | Jacques Lucke <jacques@blender.org> | 2020-04-28 19:38:18 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-04-28 20:18:12 +0300 |
commit | 4d06c1c25bd1e6503b7b6730f23501c97bb2a4fb (patch) | |
tree | d8d42e836af7ee5b707a42fca657884c449580af /source | |
parent | 44ac789a3a31947953836d98dcace3f37963848c (diff) |
BLI: add VectorSet.is_empty method
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/BLI_vector_set.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_vector_set.hh b/source/blender/blenlib/BLI_vector_set.hh index 6e1ab823e86..9f887513816 100644 --- a/source/blender/blenlib/BLI_vector_set.hh +++ b/source/blender/blenlib/BLI_vector_set.hh @@ -317,6 +317,11 @@ template<typename T, typename Allocator = GuardedAllocator> class VectorSet { return m_array.slots_set(); } + bool is_empty() const + { + return this->size() == 0; + } + const T *begin() const { return m_elements; |