[all-commits] [llvm/llvm-project] 73f2a3: [STLExtras] Use std::get in less_first, less_second...

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Mar 8 03:07:46 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 73f2a3b6a48b97f1deba605e4615b048533ee278
      https://github.com/llvm/llvm-project/commit/73f2a3b6a48b97f1deba605e4615b048533ee278
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M llvm/include/llvm/ADT/STLExtras.h
    M llvm/unittests/ADT/STLExtrasTest.cpp

  Log Message:
  -----------
  [STLExtras] Use std::get in less_first,less_second to support more types

Update less_first,less_second to use std::get to access the first and
second component. This extends support to any type implementing
std::get, like tuples.

Reviewed By: dblaikie

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




More information about the All-commits mailing list