|
| 1 | +2025-09-26 Jonathan Wakely <jwakely@redhat.com> |
| 2 | + |
| 3 | + * include/bits/stl_algobase.h (__search, __is_permutation): |
| 4 | + Reuse predicate instead of creating a new one each time. |
| 5 | + * include/bits/stl_algo.h (__is_permutation): Likewise. |
| 6 | + |
| 7 | +2025-09-26 Jonathan Wakely <jwakely@redhat.com> |
| 8 | + |
| 9 | + * include/std/deque (erase_if): Move predicate instead of |
| 10 | + wrapping with std::ref. |
| 11 | + (erase): Forward to erase_if. |
| 12 | + * include/std/inplace_vector (erase_if, erase): Likewise. |
| 13 | + * include/std/string (erase_if, erase): Likewise. |
| 14 | + * include/std/vector (erase_if, erase): Likewise. |
| 15 | + |
| 16 | +2025-09-26 Jonathan Wakely <jwakely@redhat.com> |
| 17 | + |
| 18 | + * include/bits/predefined_ops.h (equal_to, less): Define aliases |
| 19 | + for std::equal_to<void> and std::less<void>. |
| 20 | + (bind1st, bind2nd, not1, __equal_to): New object generator |
| 21 | + functions for adapting predicates. |
| 22 | + (__iter_less_iter, __iter_less_val, __iter_comp_val) |
| 23 | + (__val_less_iter, __val_comp_iter, __iter_equal_to_iter) |
| 24 | + (__iter_equal_to_val, __iter_comp_iter, __negate): Remove all |
| 25 | + object generator functions and the class templates they return. |
| 26 | + * include/bits/stl_algo.h (__move_median_to_first, __find_if_not) |
| 27 | + (__find_if_not_n, __search_n_aux, find_end, find_if_not) |
| 28 | + (__remove_copy_if, remove_copy, remove_copy_if, remove) |
| 29 | + (remove_if, __adjacent_find, __unique, unique, __unique_copy) |
| 30 | + (__unique_copy_1, __stable_partition_adaptive, stable_partition) |
| 31 | + (__heap_select, __partial_sort_copy, partial_sort_copy) |
| 32 | + (__unguarded_linear_insert, __insertion_sort) |
| 33 | + (__unguarded_insertion_sort, __unguarded_partition) |
| 34 | + (lower_bound, __upper_bound, upper_bound, __equal_range) |
| 35 | + (equal_range, binary_search, __move_merge_adaptive) |
| 36 | + (__move_merge_adaptive_backward, __merge_adaptive_resize) |
| 37 | + (__merge_without_buffer, inplace_merge, __move_merge) |
| 38 | + (__includes, includes, __next_permutation, next_permutation) |
| 39 | + (__prev_permutation, prev_permutation, __replace_copy_if) |
| 40 | + (replace_copy, replace_copy_if, __is_sorted_until) |
| 41 | + (is_sorted_until, __minmax_element, minmax_element, minmax) |
| 42 | + (is_permutation, __is_permutation, find, find_if, adjacent_find) |
| 43 | + (count, count_if, search, search_n, unique_copy, partial_sort) |
| 44 | + (nth_element, sort, __merge, merge, stable_sort, __set_union) |
| 45 | + (set_union, __set_intersection, set_intersection) |
| 46 | + (__set_difference, set_difference, __set_symmetric_difference) |
| 47 | + (set_symmetric_difference, __min_element, min_element) |
| 48 | + (__max_element, max_element, min, max): Use direct predicates |
| 49 | + instead of __iter_equal_to_iter, __iter_comp_iter, and |
| 50 | + __iter_less_iter, __negate etc. Dereference iterators when |
| 51 | + invoking predicates. |
| 52 | + * include/bits/stl_algobase.h (__lexicographical_compare_impl) |
| 53 | + (__lexicographical_compare::__lc, __lower_bound, lower_bound) |
| 54 | + (lexicographical_compare, __mismatch, mismatch, __find_if) |
| 55 | + (__count_if, __remove_if, __search, __is_permutation) |
| 56 | + (is_permutation, search): Likewise. |
| 57 | + * include/bits/stl_function.h (equal_to<void>, less<void>): |
| 58 | + Define transparent comparison functions for C++98 and C++11. |
| 59 | + * include/bits/stl_heap.h (__is_heap_until, __is_heap) |
| 60 | + (__push_heap, push_heap, __adjust_heap, pop_heap, make_heap) |
| 61 | + (sort_heap, is_heap_until, is_heap): Likewise. |
| 62 | + * include/std/deque (erase_if): Remove call to __pred_iter. |
| 63 | + (erase): Replace __iter_equals_val with __equal_to. |
| 64 | + * include/std/inplace_vector (erase_if, erase): Likewise. |
| 65 | + * include/std/string (erase_if, erase): Likewise. |
| 66 | + * include/std/vector (erase_if, erase): Likewise. |
| 67 | + |
| 68 | +2025-09-26 Jonathan Wakely <jwakely@redhat.com> |
| 69 | + |
| 70 | + PR libstdc++/122062 |
| 71 | + * include/bits/random.tcc (__detail::__normalize): Use void cast |
| 72 | + for operands of comma operator. |
| 73 | + (piecewise_linear_distribution): Likewise. |
| 74 | + * testsuite/26_numerics/random/piecewise_linear_distribution/cons/122062.cc: |
| 75 | + New test. |
| 76 | + |
1 | 77 | 2025-09-25 Luc Grosheintz <luc.grosheintz@gmail.com> |
2 | 78 |
|
3 | 79 | * include/std/mdspan (__static_quotient): New overload. |
|
0 commit comments