aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-09-02 11:54:12 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-09-02 17:48:45 +0100
commit5b73abd1a5f44f72e36bc7aefd423816083291ea (patch)
tree955d31d7fe3d0dca21d8df8e0365b0a08cf6aefb /libgcc
parent9695e1c23be5b5c55d572ced152897313ddb96ae (diff)
downloadgcc-5b73abd1a5f44f72e36bc7aefd423816083291ea.zip
gcc-5b73abd1a5f44f72e36bc7aefd423816083291ea.tar.gz
gcc-5b73abd1a5f44f72e36bc7aefd423816083291ea.tar.bz2
libstdc++: Define std::invoke_r for C++23 (P2136R3)
We already supported this feature as std::__invoke<R>, for internal use. This just adds a public version of it to <functional>. Internal uses should continue to include <bits/invoke.h> and use std::__invoke<R> so that they don't need to include all of <functional>. Signed-off-by: Jonathan Wakely <jwakely@redhat.com> libstdc++-v3/ChangeLog: * include/std/functional (invoke_r): Define. * include/std/version (__cpp_lib_invoke_r): Define. * testsuite/20_util/function_objects/invoke/version.cc: Check for __cpp_lib_invoke_r as well as __cpp_lib_invoke. * testsuite/20_util/function_objects/invoke/4.cc: New test.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions