[libcxx-commits] [libcxx] [libc++] Tiny optimizations for is_permutation (PR #129565)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Mar 19 11:31:21 PDT 2025
================
@@ -117,10 +121,9 @@ template <class _AlgPolicy, class _ForwardIterator1, class _Sentinel1, class _Fo
[[__nodiscard__]] _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 bool __is_permutation(
_ForwardIterator1 __first1, _Sentinel1 __last1, _ForwardIterator2 __first2, _BinaryPredicate&& __pred) {
// Shorten sequences as much as possible by lopping of any equal prefix.
----------------
ldionne wrote:
```suggestion
// Shorten sequences as much as possible by lopping off any equal prefix.
```
Let's correct the typo as a drive-by!
https://github.com/llvm/llvm-project/pull/129565
More information about the libcxx-commits
mailing list