aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-10-30 17:42:04 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2019-10-30 17:42:04 +0000
commitce001b300fc7bd22cbb2712b6d06e5043fe6354f (patch)
treeb2683f18d18e9fffb66104d9f990fc5557782463 /gcc
parent411679568b2e3b1ca9b84673c430f2fdc9360368 (diff)
downloadgcc-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')
0 files changed, 0 insertions, 0 deletions