[libcxx][NFC] prepares `<type_traits>` for moving out forward and swap
authorChristopher Di Bella <cjdb@google.com>
Tue, 22 Jun 2021 19:21:46 +0000 (19:21 +0000)
committerChristopher Di Bella <cjdb@google.com>
Wed, 23 Jun 2021 01:23:45 +0000 (01:23 +0000)
commitcafae0561920883f3269aa9a89aa4035b6a226e1
tree85c1176dff6567dcec25a6675ac682885c3e9ff6
parent493d6928fe1096aed3af35b0794bf79c00976b19
[libcxx][NFC] prepares `<type_traits>` for moving out forward and swap

* `<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.
libcxx/include/type_traits
libcxx/include/utility