[all-commits] [llvm/llvm-project] cafae0: [libcxx][NFC] prepares `<type_traits>` for moving ...

Christopher Di Bella via All-commits all-commits at lists.llvm.org
Tue Jun 22 18:24:20 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cafae0561920883f3269aa9a89aa4035b6a226e1
      https://github.com/llvm/llvm-project/commit/cafae0561920883f3269aa9a89aa4035b6a226e1
  Author: Christopher Di Bella <cjdb at google.com>
  Date:   2021-06-23 (Wed, 23 Jun 2021)

  Changed paths:
    M libcxx/include/type_traits
    M libcxx/include/utility

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list