]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Use alias-declarations in bits/hashtable_policy,h
authorJonathan Wakely <jwakely@redhat.com>
Thu, 12 Dec 2024 20:40:15 +0000 (20:40 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 16 Dec 2024 14:05:10 +0000 (14:05 +0000)
commitfdfd0640ab7eddb24486214361c672d1b6d8a068
treedc1ef24a7bad04abc5b2b26bb360c4776bcf5488
parentfa8475b96579d16ae4e908b89104adcbcb9477b4
libstdc++: Use alias-declarations in bits/hashtable_policy,h

This file is only for C++11 and later, so replace typedefs with
alias-declarations for clarity. Also remove redundant std::
qualification on size_t, ptrdiff_t etc.

We can also remove the result_type, first_argument_type and
second_argument_type typedefs from the range hashers. We don't need
those types to follow the C++98 adaptable function object protocol.

libstdc++-v3/ChangeLog:

* include/bits/hashtable_policy.h: Replace typedefs with
alias-declarations. Remove redundant std:: qualification.
(_Mod_range_hashing, _Mask_range_hashing): Remove adaptable
function object typedefs.
libstdc++-v3/include/bits/hashtable_policy.h