Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-04-28 19:38:18 +0300
committerJacques Lucke <jacques@blender.org>2020-04-28 20:18:12 +0300
commit4d06c1c25bd1e6503b7b6730f23501c97bb2a4fb (patch)
treed8d42e836af7ee5b707a42fca657884c449580af /source/blender/blenlib/BLI_vector_set.hh
parent44ac789a3a31947953836d98dcace3f37963848c (diff)
BLI: add VectorSet.is_empty method
Diffstat (limited to 'source/blender/blenlib/BLI_vector_set.hh')
-rw-r--r--source/blender/blenlib/BLI_vector_set.hh5
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;