diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-11-21 11:30:55 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-11-21 17:46:42 +0000 |
commit | cbd05ca5ab1231d70d07e1ffbe64c1b7338bf1d6 (patch) | |
tree | 3b0aa0a1c9458a0f535f189fd982e8cc854243fa /libcpp/directives.cc | |
parent | ed77dcb9be76e592b62449c75a5e751485514afd (diff) | |
download | gcc-cbd05ca5ab1231d70d07e1ffbe64c1b7338bf1d6.zip gcc-cbd05ca5ab1231d70d07e1ffbe64c1b7338bf1d6.tar.gz gcc-cbd05ca5ab1231d70d07e1ffbe64c1b7338bf1d6.tar.bz2 |
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.
Diffstat (limited to 'libcpp/directives.cc')
0 files changed, 0 insertions, 0 deletions