diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-11-17 10:21:54 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-11-19 17:44:14 +0000 |
commit | 0723ad39020e5b5e90f40ac0673ab34be7c5b4e0 (patch) | |
tree | 1d302c1270ad62ae64f4be35af7e5439002efd30 /libgcc | |
parent | 5c021f17e7d09a0eae2d6fb875c9a5484bd4e043 (diff) | |
download | gcc-0723ad39020e5b5e90f40ac0673ab34be7c5b4e0.zip gcc-0723ad39020e5b5e90f40ac0673ab34be7c5b4e0.tar.gz gcc-0723ad39020e5b5e90f40ac0673ab34be7c5b4e0.tar.bz2 |
libstdc++: Add always_inline to trivial range access functions
This makes all the [iterator.range] functions always-inline, except the
ones that construct a std::reverse_iterator, as they do a little more
work. They could probably be made always_inline too though, and maybe
the std::reverse_iterator constructor too.
This means that even for -O0 these functions have no runtime overhead
compared with calling a member of the container, or performing pointer
arithmetic for arrays.
libstdc++-v3/ChangeLog:
* include/bits/range_access.h: Add always_inline attribute to
trivial functions.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions