[all-commits] [llvm/llvm-project] 715567: [libc++] simplify the midpoint function (#81717)

rilysh via All-commits all-commits at lists.llvm.org
Sat Feb 17 07:56:13 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 715567d03771c437e26b16fbc71c30c4474b8895
      https://github.com/llvm/llvm-project/commit/715567d03771c437e26b16fbc71c30c4474b8895
  Author: rilysh <nightquick at proton.me>
  Date:   2024-02-17 (Sat, 17 Feb 2024)

  Changed paths:
    M libcxx/include/__numeric/midpoint.h

  Log Message:
  -----------
  [libc++] simplify the midpoint function (#81717)

Right now we've a nested ternary for the midpoint function, but this can
be simplified a bit more, using if statements. This also slightly
increases the readability of that function.



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