| 223 | } |
| 224 | |
| 225 | void Array::CopyTo(const Array::Ptr& dest) const |
| 226 | { |
| 227 | ObjectLock olock(this); |
| 228 | ObjectLock xlock(dest); |
| 229 | |
| 230 | if (dest->m_Frozen) |
| 231 | BOOST_THROW_EXCEPTION(std::invalid_argument("Array must not be modified.")); |
| 232 | |
| 233 | std::copy(m_Data.begin(), m_Data.end(), std::back_inserter(dest->m_Data)); |
| 234 | } |
| 235 | |
| 236 | /** |
| 237 | * Makes a shallow copy of an array. |
no test coverage detected