[all-commits] [llvm/llvm-project] c8f2cd: [libc++] Simplify the implementation of std::get f...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Mon May 12 13:40:40 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c8f2cdafd460ea2da9b3f2991fcfbe3b61b86c9c
      https://github.com/llvm/llvm-project/commit/c8f2cdafd460ea2da9b3f2991fcfbe3b61b86c9c
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2025-05-12 (Mon, 12 May 2025)

  Changed paths:
    M libcxx/include/__utility/pair.h
    M libcxx/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type.pass.cpp

  Log Message:
  -----------
  [libc++] Simplify the implementation of std::get for pairs (#114984)

This makes it clearer what the functions actually do. As a nice
side-effect it also avoids a function call. If the C++03 header split is
successful we could drop `__get_pair` entirely.



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