[all-commits] [llvm/llvm-project] 132346: [libc++] Add utilites for instantiating functions ...

philnik777 via All-commits all-commits at lists.llvm.org
Mon Nov 21 11:35:19 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1323461fe7cf92f6b7bdb1f088fe4c748660a046
      https://github.com/llvm/llvm-project/commit/1323461fe7cf92f6b7bdb1f088fe4c748660a046
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2022-11-21 (Mon, 21 Nov 2022)

  Changed paths:
    M libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/ranges.copy.pass.cpp
    M libcxx/test/std/language.support/support.limits/limits/is_specialized.pass.cpp
    M libcxx/test/std/strings/basic.string/string.access/at.pass.cpp
    A libcxx/test/support/test.support/type_algorithms.pass.cpp
    M libcxx/test/support/test_iterators.h
    A libcxx/test/support/type_algorithms.h

  Log Message:
  -----------
  [libc++] Add utilites for instantiating functions with multiple types

We currently call a lot of functions with the same list of types. To avoid forgetting any of them, this patch adds type_lists and utilities for it. Specifically, it adds
- `type_list` - This is just a list of types
- `concatenate` - This allows concatenating type_lists
- `for_each` - Iterate over a type_list

Reviewed By: ldionne, #libc

Spies: jloser, EricWF, libcxx-commits

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




More information about the All-commits mailing list