[libcxx-commits] [libcxx] [libc++] Add the __is_replaceable type trait (PR #132408)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Mar 24 11:29:01 PDT 2025


================
@@ -0,0 +1,269 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include <__type_traits/is_replaceable.h>
+#include <array>
+#include <deque>
----------------
ldionne wrote:

I don't, but @philnik777 might. I added support for `is_replaceable` for the same set of types we already handled for `is_trivially_relocatable`, no more. I suggest we expand it in future patches.

https://github.com/llvm/llvm-project/pull/132408


More information about the libcxx-commits mailing list