[libcxx-commits] [libcxx] [libc++] Optimize std::find if types are integral (PR #70345)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Dec 14 09:21:25 PST 2023
================
@@ -113,6 +113,272 @@ struct TestTypes {
}
};
+enum class match {
+ none,
+ first,
+};
+
+template <class T, class U>
+TEST_CONSTEXPR_CXX20 void test_integer_promotion(match min_expected, match max_expected) {
+ { // check min value
----------------
ldionne wrote:
And then you can throw a bunch of different values at the test much more easily, I think.
https://github.com/llvm/llvm-project/pull/70345
More information about the libcxx-commits
mailing list