commit | b55753fecca1df4f3f1491651469d32bd34a6f99 | [log] [tgz] |
---|---|---|

author | Nikolas Klauser <nikolasklauser@berlin.de> | Tue Jun 06 13:57:45 2023 -0700 |

committer | Copybara-Service <copybara-worker@google.com> | Tue Jun 06 14:00:33 2023 -0700 |

tree | 33d17c688736c8b265966454dfab68a84290a3d5 | |

parent | 8fa3939b4a94175034ee3d44e939b24a54a773ff [diff] |

[libc++] Refactor __less This simplifies the usage of `__less` by making the class not depend on the types compared, but instead the `operator()`. We can't remove the template completely because we explicitly instantiate `std::__sort` with `__less<T>`. Reviewed By: ldionne, #libc Spies: arichardson, EricWF, libcxx-commits, mgrang Differential Revision: https://reviews.llvm.org/D145285 GitOrigin-RevId: 88632e48069605f5a27740a5df49f0f4e3c285ec

- include/__algorithm/binary_search.h[diff]
- include/__algorithm/clamp.h[diff]
- include/__algorithm/comp.h[diff]
- include/__algorithm/equal_range.h[diff]
- include/__algorithm/includes.h[diff]
- include/__algorithm/inplace_merge.h[diff]
- include/__algorithm/is_heap.h[diff]
- include/__algorithm/is_heap_until.h[diff]
- include/__algorithm/is_sorted.h[diff]
- include/__algorithm/is_sorted_until.h[diff]
- include/__algorithm/lexicographical_compare.h[diff]
- include/__algorithm/lower_bound.h[diff]
- include/__algorithm/make_heap.h[diff]
- include/__algorithm/max.h[diff]
- include/__algorithm/max_element.h[diff]
- include/__algorithm/merge.h[diff]
- include/__algorithm/min.h[diff]
- include/__algorithm/min_element.h[diff]
- include/__algorithm/minmax.h[diff]
- include/__algorithm/minmax_element.h[diff]
- include/__algorithm/next_permutation.h[diff]
- include/__algorithm/nth_element.h[diff]
- include/__algorithm/partial_sort.h[diff]
- include/__algorithm/partial_sort_copy.h[diff]
- include/__algorithm/pop_heap.h[diff]
- include/__algorithm/prev_permutation.h[diff]
- include/__algorithm/push_heap.h[diff]
- include/__algorithm/set_difference.h[diff]
- include/__algorithm/set_intersection.h[diff]
- include/__algorithm/set_symmetric_difference.h[diff]
- include/__algorithm/set_union.h[diff]
- include/__algorithm/sort.h[diff]
- include/__algorithm/sort_heap.h[diff]
- include/__algorithm/stable_sort.h[diff]
- include/__algorithm/upper_bound.h[diff]
- include/forward_list[diff]
- include/list[diff]
- src/algorithm.cpp[diff]
- test/libcxx/algorithms/robust_against_using_non_transparent_comparators.pass.cpp[Added - diff]
- test/std/containers/sequences/array/compare.verify.cpp[diff]
- utils/data/ignore_format.txt[diff]

41 files changed

tree: 33d17c688736c8b265966454dfab68a84290a3d5