[all-commits] [llvm/llvm-project] 03cda7: [libc++][spaceship] Implement `operator<=>` for `o...

Hristo Hristov via All-commits all-commits at lists.llvm.org
Thu May 4 23:59:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 03cda77409023e64d6338dcb4e36bf1e40b33ea3
      https://github.com/llvm/llvm-project/commit/03cda77409023e64d6338dcb4e36bf1e40b33ea3
  Author: Hristo Hristov <zingam at outlook.com>
  Date:   2023-05-05 (Fri, 05 May 2023)

  Changed paths:
    M libcxx/docs/Status/Cxx2bIssues.csv
    M libcxx/docs/Status/SpaceshipProjects.csv
    M libcxx/include/optional
    A libcxx/test/std/utilities/optional/optional.comp_with_t/compare.three_way.pass.cpp
    A libcxx/test/std/utilities/optional/optional.nullops/compare.three_way.pass.cpp
    A libcxx/test/std/utilities/optional/optional.relops/compare.three_way.pass.cpp

  Log Message:
  -----------
  [libc++][spaceship] Implement `operator<=>` for `optional`

Implements parts of **P1614R2**: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1614r2.html

- Implemented `operator<=>` for `optional`
- Updated "optional synopsis" to match the current draft https://eel.is/c++draft/optional closer
- Implemented https://cplusplus.github.io/LWG/issue3566
- Implemented https://cplusplus.github.io/LWG/issue3746

Reviewed By: #libc, philnik, ldionne

Differential Revision: https://reviews.llvm.org/D146392




More information about the All-commits mailing list