llvm-project/libcxx/test/std/utilities/function.objects
Zhihao Yuan bcde6e715e [libcxx] P0604, invoke_result and is_invocable
Summary:
Introduce a new form of `result_of` without function type encoding.

Rename and split `is_callable/is_nothrow_callable` into `is_invocable/is_nothrow_invocable/is_invocable_r/is_nothrow_invocable_r` (and associated types accordingly)

Change function type encoding of previous `is_callable/is_nothrow_callable` traits to conventional template type parameter lists.


Reviewers: EricWF, mclow.lists, bebuch

Reviewed By: EricWF, bebuch

Subscribers: lichray, bebuch, cfe-commits

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

llvm-svn: 320509
2017-12-12 18:42:04 +00:00
..
arithmetic.operations [libcxx] [test] Rename _Up to U, etc. NFCI. 2017-08-11 20:54:09 +00:00
bind Update all bug URL's to point to https://bugs.llvm.org/... 2017-02-17 08:37:03 +00:00
bitwise.operations [libcxx] [test] Rename _Up to U, etc. NFCI. 2017-08-11 20:54:09 +00:00
comparisons [libcxx] [test] Rename _Up to U, etc. NFCI. 2017-08-11 20:54:09 +00:00
func.def
func.invoke [libcxx] [test] Make files consistently end with newlines, NFC. 2017-07-29 00:55:22 +00:00
func.memfn Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 2016-06-14 21:31:42 +00:00
func.not_fn [libcxx] P0604, invoke_result and is_invocable 2017-12-12 18:42:04 +00:00
func.require [libcxx] [test] Update for C++17 feature removals. 2017-08-24 21:24:08 +00:00
func.wrap Fix PR34298 - Allow std::function with an incomplete return type. 2017-09-10 23:41:20 +00:00
logical.operations [libcxx] [test] Rename _Up to U, etc. NFCI. 2017-08-11 20:54:09 +00:00
negators In C++03, a bunch of the arithmetic/logical/comparison functors (such as negate/bit_not.pass/logical_not) were defined as deriving from unary_funtion. That restriction was removed in C++11, but the tests still check for this. Change the test to look for the embedded types first_argument/second_argument/result_type. No change to the library, just more standards-compliant tests. Thanks to STL @ Microsoft for the suggestion. 2015-01-07 21:51:30 +00:00
refwrap [libcxx] [test] Update for C++17 feature removals. 2017-08-24 21:24:08 +00:00
unord.hash [libcxx] P0604, invoke_result and is_invocable 2017-12-12 18:42:04 +00:00