diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-10-30 17:42:04 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-10-30 17:42:04 +0000 |
commit | ce001b300fc7bd22cbb2712b6d06e5043fe6354f (patch) | |
tree | b2683f18d18e9fffb66104d9f990fc5557782463 /gcc/tree.c | |
parent | 411679568b2e3b1ca9b84673c430f2fdc9360368 (diff) | |
download | gcc-ce001b300fc7bd22cbb2712b6d06e5043fe6354f.zip gcc-ce001b300fc7bd22cbb2712b6d06e5043fe6354f.tar.gz gcc-ce001b300fc7bd22cbb2712b6d06e5043fe6354f.tar.bz2 |
Use if-constexpr instead of overloading for customization point
This combines two of the std::ranges::swap.operator() overloads into a
single function template. Using if-constexpr to choose between
implementations should give the compiler less work to do than using
overloading.
* include/std/concepts (std::ranges::swap): Use a single overload for
the non-array cases, and switch using if-constexpr.
From-SVN: r277635
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions