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