Inserts a new element into the array, assuming that the array is sorted. This will use the DefaultElementComparator class for sorting, so your ElementType must be suitable for use with that class. If the array isn't sorted, the behaviour of this method will be unpredictable. @param newElement the new element to insert to the array @see addSorted, sort */
| 7393 | @see addSorted, sort |
| 7394 | */ |
| 7395 | void addUsingDefaultSort (ParameterType newElement) |
| 7396 | { |
| 7397 | DefaultElementComparator <ElementType> comparator; |
| 7398 | addSorted (comparator, newElement); |
| 7399 | } |
| 7400 | |
| 7401 | /** Finds the index of an element in the array, assuming that the array is sorted. |
| 7402 |
no outgoing calls
no test coverage detected