libstdc++: Implement C++23 std::bind_back from P2387R3 [PR108827]
commitac1a399bf61b04845f5d6fc34e4b7a4db2bc5760
authorPatrick Palka <ppalka@redhat.com>
Sat, 13 Jan 2024 04:02:12 +0000 (12 23:02 -0500)
committerPatrick Palka <ppalka@redhat.com>
Sat, 13 Jan 2024 04:02:12 +0000 (12 23:02 -0500)
treee4b916d1b52b7a8022468c5390c5d20f2c25dba6
parent3e1ffa7dd111374a5e277b71269f9b6e10b3ec57
libstdc++: Implement C++23 std::bind_back from P2387R3 [PR108827]

The implementation is based off of std::bind_front.  Since this is a
C++23 feature we use deducing this unconditionally.

PR libstdc++/108827
PR libstdc++/111327

libstdc++-v3/ChangeLog:

* include/bits/version.def (bind_back): Define.
* include/bits/version.h: Regenerate.
* include/std/functional (_Bind_back): Define for C++23.
(bind_back): Likewise.
* testsuite/20_util/function_objects/bind_back/1.cc: New test
(adapted from corresponding bind_front test).
* testsuite/20_util/function_objects/bind_back/111327.cc: Likewise.
libstdc++-v3/include/bits/version.def
libstdc++-v3/include/bits/version.h
libstdc++-v3/include/std/functional
libstdc++-v3/testsuite/20_util/function_objects/bind_back/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/function_objects/bind_back/111327.cc [new file with mode: 0644]