commit | ef753e35b1bb69c66004476c53e4ec004ccf6a54 | [log] [tgz] |
---|---|---|
author | Eric Fiselier <eric@efcs.ca> | Fri Apr 12 05:18:19 2019 +0000 |
committer | Eric Fiselier <eric@efcs.ca> | Fri Apr 12 05:18:19 2019 +0000 |
tree | a9d313d4c3bce061d85bd8a43438ff10ab4c15f8 | |
parent | ac7b2ece02fc4d1ac2c752e906017cd7813e377f [diff] |
Cleanup how debug comparators are created in <algorithm> Instead of having an `#if` block in every algorithm using a debug comparator, this patch introduces the __comp_ref_type trait that selects __debug_less in debug mode and _Comp& otherwise. This patch should have no observable functionality change. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@358252 91177308-0d34-0410-b5e6-96231b3b80d8