* Sort selected range of items (on indices @ ) * @param el list to be sorted * @param compare function for evaluation of the quicksort * @param begin start of sorting * @param num_items count of items to be sorted */
| 367 | * @param num_items count of items to be sorted |
| 368 | */ |
| 369 | void EngList_SortPartial(GUIEngineList &el, EngList_SortTypeFunction compare, size_t begin, size_t num_items) |
| 370 | { |
| 371 | if (num_items < 2) return; |
| 372 | assert(begin < el.size()); |
| 373 | assert(begin + num_items <= el.size()); |
| 374 | std::sort(el.begin() + begin, el.begin() + begin + num_items, compare); |
| 375 | } |
| 376 |
no test coverage detected