* Checks whether the array contains the specified value. * * @param value The value. * @returns true if the array contains the value, false otherwise. */
| 135 | * @returns true if the array contains the value, false otherwise. |
| 136 | */ |
| 137 | bool Array::Contains(const Value& value) const |
| 138 | { |
| 139 | ObjectLock olock(this); |
| 140 | |
| 141 | return (std::find(m_Data.begin(), m_Data.end(), value) != m_Data.end()); |
| 142 | } |
| 143 | |
| 144 | /** |
| 145 | * Insert the given value at the specified index |
no test coverage detected