gcc/libstdc++-v3/include/std
Jonathan Wakely 7dcc645ccd P0604R0 add invoke_result, is_invocable etc. for C++17
* include/bits/invoke.h (__invoke): Use __invoke_result instead of
	result_of, and __is_nothrow_invocable instead of
	__is_nothrow_callable.
	* include/bits/shared_ptr_base.h (__shared_ptr): Use __is_invocable
	instead of __is_callable.
	* include/std/functional (invoke): use invoke_result_t instead of
	result_of_t and is_nothrow_invocable instead of is_nothrow_callable.
	(_Not_fn): Use __invoke_result instead of result_of.
	* include/std/type_traits (__result_of_memobj, __result_of_memfun):
	Remove partial specializations for reference_wrapper types.
	(__result_of_impl): Use __inv_unwrap to strip reference_wrapper.
	(__invoke_result): Define replacement for result_of and then use it to
	define result_of.
	(__is_callable_impl, __is_callable, __is_nothrow_callable): Replace
	with __is_invocable_impl, __is_invocable, and __is_nothrow_invocable
	respectively.
	(invoke_result, invoke_result_t): Define for C++17.
	(is_callable, is_nothrow_callable): Replace with is_invocable,
	is_invocable_r, is_nothrow_invocable, and is_nothrow_invocable_r.
	(is_callable_v, is_nothrow_callable_v): Replace with is_invocable_v,
	is_invocable_r_v, is_nothrow_invocable_v, and is_nothrow_invocable_r_v.
	* include/std/variant (hash<variant<T...>>): Use is_nothrow_invocable_v
	instead of is_nothrow_callable_v.
	* testsuite/20_util/function_objects/invoke/59768.cc: Remove unused
	main function.
	* testsuite/20_util/function_objects/not_fn/1.cc: Use is_invocable
	instead of is_callable.
	* testsuite/20_util/is_callable/*: Rename directory and adjust tests
	to use new traits.
	* testsuite/20_util/is_notjrow_callable/*: Likewise.
	* testsuite/20_util/optional/hash.cc: Use is_invocable_v instead of
	is_callable.
	* testsuite/20_util/variant/hash.cc: Likewise.

From-SVN: r246036
2017-03-10 15:29:38 +00:00
..
algorithm Update copyright years. 2017-01-01 13:07:43 +01:00
any PR69321 fix any_cast<T>(any*) for non-copyable T 2017-01-20 01:22:54 +00:00
array Update copyright years. 2017-01-01 13:07:43 +01:00
atomic PR69301 don't assume atomic<T> can default construct T 2017-01-18 18:36:45 +00:00
bitset Update copyright years. 2017-01-01 13:07:43 +01:00
chrono C++17 GB50 resolution (P0505R0) 2017-02-19 16:04:35 +00:00
codecvt Update copyright years. 2017-01-01 13:07:43 +01:00
complex PR libstdc++/70607 make proj(T) and conj(T) return complex<T> 2017-01-25 15:01:05 +00:00
condition_variable Update copyright years. 2017-01-01 13:07:43 +01:00
deque Update copyright years. 2017-01-01 13:07:43 +01:00
forward_list Update copyright years. 2017-01-01 13:07:43 +01:00
fstream Update copyright years. 2017-01-01 13:07:43 +01:00
functional P0604R0 add invoke_result, is_invocable etc. for C++17 2017-03-10 15:29:38 +00:00
future PR libstdc++/79486 use lvalues in result_of expressions 2017-02-13 13:13:29 +00:00
iomanip Update copyright years. 2017-01-01 13:07:43 +01:00
ios Update copyright years. 2017-01-01 13:07:43 +01:00
iosfwd Update copyright years. 2017-01-01 13:07:43 +01:00
iostream Update copyright years. 2017-01-01 13:07:43 +01:00
istream Update copyright years. 2017-01-01 13:07:43 +01:00
iterator Update copyright years. 2017-01-01 13:07:43 +01:00
limits Update copyright years. 2017-01-01 13:07:43 +01:00
list Update copyright years. 2017-01-01 13:07:43 +01:00
locale Update copyright years. 2017-01-01 13:07:43 +01:00
map Update copyright years. 2017-01-01 13:07:43 +01:00
memory PR libstdc++/79789 fix non-reserved names in headers 2017-03-02 03:43:49 +00:00
mutex Add std::scoped_lock for C++17 2017-03-05 18:38:35 +00:00
numeric Update copyright years. 2017-01-01 13:07:43 +01:00
optional Implement LWG 2825, LWG 2756 breaks class template argument deduction for optional. 2017-01-30 15:37:16 +02:00
ostream Update copyright years. 2017-01-01 13:07:43 +01:00
queue Update copyright years. 2017-01-01 13:07:43 +01:00
random Update copyright years. 2017-01-01 13:07:43 +01:00
ratio Update copyright years. 2017-01-01 13:07:43 +01:00
regex Update copyright years. 2017-01-01 13:07:43 +01:00
scoped_allocator Update copyright years. 2017-01-01 13:07:43 +01:00
set Update copyright years. 2017-01-01 13:07:43 +01:00
shared_mutex Update copyright years. 2017-01-01 13:07:43 +01:00
sstream Update copyright years. 2017-01-01 13:07:43 +01:00
stack Update copyright years. 2017-01-01 13:07:43 +01:00
stdexcept Update copyright years. 2017-01-01 13:07:43 +01:00
streambuf Update copyright years. 2017-01-01 13:07:43 +01:00
string Update copyright years. 2017-01-01 13:07:43 +01:00
string_view Fix namespace versioning and remove __detail::__identity helpers 2017-01-26 18:32:55 +00:00
system_error Update copyright years. 2017-01-01 13:07:43 +01:00
thread Add deleted std::thread(const thread&&) constructor 2017-01-03 13:31:26 +00:00
tuple Update copyright years. 2017-01-01 13:07:43 +01:00
type_traits P0604R0 add invoke_result, is_invocable etc. for C++17 2017-03-10 15:29:38 +00:00
typeindex Update copyright years. 2017-01-01 13:07:43 +01:00
unordered_map Update copyright years. 2017-01-01 13:07:43 +01:00
unordered_set Update copyright years. 2017-01-01 13:07:43 +01:00
utility Update copyright years. 2017-01-01 13:07:43 +01:00
valarray Update copyright years. 2017-01-01 13:07:43 +01:00
variant P0604R0 add invoke_result, is_invocable etc. for C++17 2017-03-10 15:29:38 +00:00
vector Update copyright years. 2017-01-01 13:07:43 +01:00