[libcxx-commits] [libcxx] [libc++][NFC] Simplify copy and move lowering to memmove a bit (PR #83574)
Konstantin Varlamov via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Mar 20 00:09:13 PDT 2024
================
@@ -81,30 +81,17 @@ __copy_backward_trivial_impl(_In* __first, _In* __last, _Out* __result) {
// Iterator unwrapping and dispatching to the correct overload.
-template <class _F1, class _F2>
-struct __overload : _F1, _F2 {
- using _F1::operator();
- using _F2::operator();
-};
-
template <class _InIter, class _Sent, class _OutIter, class = void>
----------------
var-const wrote:
I think it was unused before as well, IIRC, I had it in the type signature for consistency (basically, always pass the same set of parameters around without having to think what is and isn't used which is arguably an implementation detail of each trait).
https://github.com/llvm/llvm-project/pull/83574
More information about the libcxx-commits
mailing list