* @brief Removes elements that match a specified value from an array. * * This function removes all elements from the array `base` that match the value pointed to by `val`, * as determined by the comparison function `comp`. * * @param base Pointer to the start of the array. * @param num Number of elements in the array. * @param size Size of each element in bytes. * @param val Pointer to t
| 2044 | if (i == (char *)first) { |
| 2045 | ALGORITHM_LOG("[algorithm_next_permutation] Info: Resetting to smallest permutation."); |
| 2046 | reverse(first, last, size); |
| 2047 | return false; |
| 2048 | } |
| 2049 | } |
| 2050 | |
| 2051 | return false; |
| 2052 | } |
| 2053 | |
| 2054 | |
| 2055 | /** |
| 2056 | * @brief Generates the previous lexicographical permutation of a range. |
| 2057 | * |
| 2058 | * This function rearranges the elements in the range `[first, last)` into the previous lexicographical |
| 2059 | * permutation, as determined by the comparison function `comp`. If such a permutation is not possible, |
| 2060 | * the range is rearranged into the largest lexicographical order (sorted in descending order). |
| 2061 | * |
| 2062 | * @param first Pointer to the start of the range. |
| 2063 | * @param last Pointer to one past the end of the range. |
| 2064 | * @param size Size of each element in bytes. |
| 2065 | * @param comp Comparison function used to compare elements. |
| 2066 | * It should return `true` if the first element is less than the second, `false` otherwise. |
| 2067 | * |
nothing calls this directly
no outgoing calls
no test coverage detected