[all-commits] [llvm/llvm-project] c69a5e: [libc++] Simplify the implementation of std::declv...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Thu Sep 10 05:58:22 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c69a5ebf6b961d1296cb42a104008df40cf3bc36
      https://github.com/llvm/llvm-project/commit/c69a5ebf6b961d1296cb42a104008df40cf3bc36
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    M libcxx/include/__utility/declval.h

  Log Message:
  -----------
  [libc++] Simplify the implementation of std::declval (#222303)

The implementation of `std::declval` calling `__declval` was originally
introduced for improved compile times. However, we now have a builtin
for `add_rvalue_reference`, which makes the old implementation faster
again, since we avoid instantiating any class types _and_ avoid overload
resolution.



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