[libcxx-commits] [PATCH] D123114: [libc++] Add __is_callable type trait and begin granularizing type_traits

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 5 03:13:20 PDT 2022


philnik created this revision.
philnik added reviewers: ldionne, Mordante, var-const.
Herald added a subscriber: mgorny.
Herald added a project: All.
philnik requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123114

Files:
  libcxx/include/CMakeLists.txt
  libcxx/include/__type_traits/bool_constant.h
  libcxx/include/__type_traits/integral_constant.h
  libcxx/include/__type_traits/is_callable.h
  libcxx/include/module.modulemap
  libcxx/include/type_traits
  libcxx/test/libcxx/type_traits/is_callable.compile.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123114.420434.patch
Type: text/x-patch
Size: 8746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220405/9676e6f5/attachment.bin>


More information about the libcxx-commits mailing list