diff options
| author | Eric Fiselier <eric@efcs.ca> | 2016-10-14 07:19:52 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2016-10-14 07:19:52 +0000 |
| commit | 498ee00a3af1ba1490b6bd8fe89dfa4fc67f1601 (patch) | |
| tree | 2c2368eb75a3be3a72aa68c586c8e46e87fa6697 /libcxx/include | |
| parent | ffb602125aa1b400a27f39870ea56ca00ff4fa94 (diff) | |
| download | bcm5719-llvm-498ee00a3af1ba1490b6bd8fe89dfa4fc67f1601.tar.gz bcm5719-llvm-498ee00a3af1ba1490b6bd8fe89dfa4fc67f1601.zip | |
Add void_t and invoke feature test macros
llvm-svn: 284209
Diffstat (limited to 'libcxx/include')
| -rw-r--r-- | libcxx/include/functional | 2 | ||||
| -rw-r--r-- | libcxx/include/type_traits | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/include/functional b/libcxx/include/functional index 4adb8c92aa3..088be05cab5 100644 --- a/libcxx/include/functional +++ b/libcxx/include/functional @@ -2635,6 +2635,8 @@ struct _LIBCPP_TYPE_VIS_ONLY hash : public __enum_hash<_Tp> #if _LIBCPP_STD_VER > 14 +#define __cpp_lib_invoke 201411 + template <class _Fn, class ..._Args> result_of_t<_Fn&&(_Args&&...)> invoke(_Fn&& __f, _Args&&... __args) diff --git a/libcxx/include/type_traits b/libcxx/include/type_traits index 43687a7c684..0f158fdb89d 100644 --- a/libcxx/include/type_traits +++ b/libcxx/include/type_traits @@ -4599,6 +4599,8 @@ struct __has_operator_addressof #endif // _LIBCPP_CXX03_LANG #if _LIBCPP_STD_VER > 14 + +#define __cpp_lib_void_t 201411 template <class...> using void_t = void; # ifndef _LIBCPP_HAS_NO_VARIADICS |

