__is_callable is required to ensure that the classic algorithms are only called with functions or functors. I also begin to granularize <type_traits>.
Details
Details
- Reviewers
ldionne Mordante var-const - Group Reviewers
Restricted Project - Commits
- rG08920cc04343: [libc++] Add __is_callable type trait and begin granularizing type_traits
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
LGTM with green CI.
libcxx/include/__type_traits/bool_constant.h | ||
---|---|---|
21 ↗ | (On Diff #420434) | Since those are so small, I would be in favor of putting them in integral_constant.h directly. I don't have a *strong* preference, though. |
libcxx/include/type_traits | ||
1261 | For anyone looking at this and wondering the reason for this removal, we have the exact same code in __utility/declval.h. |
For anyone looking at this and wondering the reason for this removal, we have the exact same code in __utility/declval.h.