[libcxx-commits] [PATCH] D104738: [libcxx][NFC] prepares `<type_traits>` for moving out forward and swap

Christopher Di Bella via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jun 22 12:44:55 PDT 2021


cjdb created this revision.
cjdb added a reviewer: ldionne.
cjdb requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

- `<type_traits>` depends on `std::forward`, so we replaced it with `static_cast<T&&>`.
- `swap`'s return type is confusing, so it's been rearranged to improve readabilitiy.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D104738

Files:
  libcxx/include/type_traits

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104738.353751.patch
Type: text/x-patch
Size: 5404 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210622/34c06b17/attachment.bin>


More information about the libcxx-commits mailing list