| 937 | */ |
| 938 | template <class T> |
| 939 | iterator insert(iterator position, const std::shared_ptr<value<T>>& value) |
| 940 | { |
| 941 | if (values_.empty() || values_[0]->as<T>()) |
| 942 | { |
| 943 | return values_.insert(position, value); |
| 944 | } |
| 945 | else |
| 946 | { |
| 947 | throw array_exception{"Arrays must be homogenous."}; |
| 948 | } |
| 949 | } |
| 950 | |
| 951 | /** |
| 952 | * Insert an array into the array |
no test coverage detected