[all-commits] [llvm/llvm-project] 2e708e: [libc++] Reimplement `optional<T&>` as a partial s...

William Tran-Viet via All-commits all-commits at lists.llvm.org
Thu Jun 11 16:42:10 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e708e7c90e611a57f7e748347acc4dbd540e43a
      https://github.com/llvm/llvm-project/commit/2e708e7c90e611a57f7e748347acc4dbd540e43a
  Author: William Tran-Viet <wtranviet at proton.me>
  Date:   2026-06-12 (Fri, 12 Jun 2026)

  Changed paths:
    M libcxx/include/optional
    M libcxx/test/std/utilities/optional/optional.syn/optional_in_place_t.verify.cpp
    M libcxx/test/std/utilities/optional/optional.syn/optional_nullopt_t.verify.cpp

  Log Message:
  -----------
  [libc++] Reimplement `optional<T&>` as a partial specialization (#201983)

- Break out the `optional<T&>` implementation that was interwoven with
the regular interface
- This should simplify the implementation
- And fix a missed added constraint for the `std::swap` specialization.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list