[libcxx-commits] [libcxx] [libc++] Implement part of P2562R1: constexpr `std::stable_partition` (PR #128868)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Mar 1 10:34:33 PST 2025
================
@@ -23,38 +23,21 @@
#include "test_iterators.h"
#include "test_macros.h"
-struct is_odd
-{
- bool operator()(const int& i) const {return i & 1;}
+struct is_odd {
+ TEST_CONSTEXPR_CXX26 bool operator()(const int& i) const { return i & 1; }
};
----------------
frederick-vs-ja wrote:
Done. I've also done for #129008, while I don't think #128860 needs separating formatting changes.
https://github.com/llvm/llvm-project/pull/128868
More information about the libcxx-commits
mailing list