commit | cbd05ca5ab1231d70d07e1ffbe64c1b7338bf1d6 | [log] [tgz] |
---|---|---|
author | Jonathan Wakely <jwakely@redhat.com> | Mon Nov 21 11:30:55 2022 +0000 |
committer | Jonathan Wakely <jwakely@redhat.com> | Mon Nov 21 17:46:42 2022 +0000 |
tree | 3b0aa0a1c9458a0f535f189fd982e8cc854243fa | |
parent | ed77dcb9be76e592b62449c75a5e751485514afd [diff] |
libstdc++: Reduce size of std::bind_front(F) result When there are no bound arguments to a std::bind_front call we don't need the overhead of compiling, initializing, and accessing an empty tuple. libstdc++-v3/ChangeLog: * include/std/functional (_Bind_front0): New class template. (_Bind_front_t): Use _Bind_front0 when there are no bound arguments. * testsuite/20_util/function_objects/bind_front/107784.cc: New test.