[all-commits] [llvm/llvm-project] 08920c: [libc++] Add __is_callable type trait and begin gr...

philnik777 via All-commits all-commits at lists.llvm.org
Fri Apr 8 03:24:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 08920cc04343e69ee8a56168a5911acddf40e6ba
      https://github.com/llvm/llvm-project/commit/08920cc04343e69ee8a56168a5911acddf40e6ba
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2022-04-08 (Fri, 08 Apr 2022)

  Changed paths:
    M libcxx/include/CMakeLists.txt
    A libcxx/include/__type_traits/integral_constant.h
    A libcxx/include/__type_traits/is_callable.h
    M libcxx/include/module.modulemap
    M libcxx/include/type_traits
    M libcxx/test/libcxx/private_headers.verify.cpp
    A libcxx/test/libcxx/type_traits/is_callable.compile.pass.cpp

  Log Message:
  -----------
  [libc++] Add __is_callable type trait and begin granularizing type_traits

`__is_callable` is required to ensure that the classic algorithms are only called with functions or functors. I also begin to granularize `<type_traits>`.

Reviewed By: ldionne, #libc

Spies: libcxx-commits, mgorny

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




More information about the All-commits mailing list