| 1204 | |
| 1205 | template<typename ELEM_> |
| 1206 | Array<ELEM_> Array_obj<ELEM_>::copy( ) |
| 1207 | { |
| 1208 | Array_obj *result = new Array_obj((int)length,0); |
| 1209 | ::memcpy(result->GetBase(),GetBase(),length*sizeof(ELEM_)); |
| 1210 | return result; |
| 1211 | } |
| 1212 | |
| 1213 | // Copies the range of the array starting at pos up to, but not including, end. |
| 1214 | // Both pos and end can be negative to count from the end: -1 is the last item in the array. |
no test coverage detected