diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-11-01 12:38:29 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-11-08 11:26:40 +0000 |
commit | b907cde027dc65af5842c06c50cfa12e2f58133b (patch) | |
tree | d6c497e9fc51053db87a1067a31b5f07cf3111c1 /gcc/function.cc | |
parent | 775056616386b7d05f81a413a0ad72c63aa381bf (diff) | |
download | gcc-b907cde027dc65af5842c06c50cfa12e2f58133b.zip gcc-b907cde027dc65af5842c06c50cfa12e2f58133b.tar.gz gcc-b907cde027dc65af5842c06c50cfa12e2f58133b.tar.bz2 |
libstdc++: Simplify __detail::__distance_fw using 'if constexpr'
This uses 'if constexpr' instead of tag dispatching, removing the need
for a second call using that tag, and simplifying the overload set that
needs to be resolved for calls to __distance_fw.
libstdc++-v3/ChangeLog:
* include/bits/hashtable_policy.h (__distance_fw): Replace tag
dispatching with 'if constexpr'.
Diffstat (limited to 'gcc/function.cc')
0 files changed, 0 insertions, 0 deletions