* Insert the given value at the specified index * * @param index The index * @param value The value to add */
| 148 | * @param value The value to add |
| 149 | */ |
| 150 | void Array::Insert(SizeType index, Value value) |
| 151 | { |
| 152 | ObjectLock olock(this); |
| 153 | |
| 154 | ASSERT(index <= m_Data.size()); |
| 155 | |
| 156 | if (m_Frozen) |
| 157 | BOOST_THROW_EXCEPTION(std::invalid_argument("Array must not be modified.")); |
| 158 | |
| 159 | m_Data.insert(m_Data.begin() + index, std::move(value)); |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * Removes the specified index from the array. |
no test coverage detected