| 157 | |
| 158 | |
| 159 | LIST * list_copy_range( LIST * l, LISTITER first, LISTITER last ) |
| 160 | { |
| 161 | if ( first == last ) |
| 162 | return L0; |
| 163 | else |
| 164 | { |
| 165 | int size = last - first; |
| 166 | LIST * result = list_alloc( size ); |
| 167 | LISTITER dest = list_begin( result ); |
| 168 | result->impl.size = size; |
| 169 | for ( ; first != last; ++first, ++dest ) |
| 170 | *dest = object_copy( *first ); |
| 171 | return result; |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | |
| 176 | /* |
no test coverage detected