return m_Data.size();
}
+/**
+ * Checks whether the array contains the specified value.
+ *
+ * @param value The value.
+ * @returns true if the array contains the value, false otherwise.
+ */
+bool Array::Contains(const String& value) const
+{
+ ASSERT(!OwnsLock());
+ ObjectLock olock(this);
+
+ return (std::find(m_Data.begin(), m_Data.end(), value) != m_Data.end());
+}
+
/**
* Insert the given value at the specified index
*
Iterator End(void);
size_t GetLength(void) const;
+ bool Contains(const String& value) const;
void Insert(unsigned int index, const Value& value);
void Remove(unsigned int index);
Array::Ptr groups = GetGroups();
+ if (groups && groups->Contains(name))
+ return;
+
if (!groups)
groups = make_shared<Array>();
Array::Ptr groups = GetGroups();
+ if (groups && groups->Contains(name))
+ return;
+
if (!groups)
groups = make_shared<Array>();