================ @@ -3625,6 +3632,21 @@ Query for this feature with ``__has_builtin(__builtin_operator_new)`` or replaceable global (de)allocation functions, but do support calling at least ``::operator new(size_t)`` and ``::operator delete(void*)``. + +``__builtin_trivially_relocate`` +----------------------------------- + +**Syntax**: + +.. code-block:: c + + T* __builtin_trivially_relocate(T* dest, T* src, size_t count) + +Trivially relocates ``count`` objects of relocatable, complete type ``T`` +from ``src`` to ``dest`` and returns ``dest``. +This builtin is used to implement ``std::trivially_relocate``. ---------------- cor3ntin wrote:
Now, there is a thingle builtin https://github.com/llvm/llvm-project/pull/127636 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits