aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-01-24 17:07:01 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-01-24 17:17:16 +0000
commit482eeff5f114c7635c1a06edb2deee3e5433c3f3 (patch)
tree742ee65091a59544766c36453fad64114fb4a614 /gcc
parent64c9f2d9972ad359a32f0a97ee0a806c2532db15 (diff)
downloadgcc-482eeff5f114c7635c1a06edb2deee3e5433c3f3.zip
gcc-482eeff5f114c7635c1a06edb2deee3e5433c3f3.tar.gz
gcc-482eeff5f114c7635c1a06edb2deee3e5433c3f3.tar.bz2
libstdc++: Simplify construction of comparison category types
The _Eq and _Ord enumerations can be combined into one, reducing the number of constructors needed for the comparison category types. The redundant equal enumerator can be removed and equivalent used in its place. The _Less and _Greater enumerators can be renamed because 'less' and 'greater' are already reserved names anyway. * libsupc++/compare (__cmp_cat::_Eq): Remove enumeration type. (__cmp_cat::_Ord::equivalent): Add enumerator. (__cmp_cat::_Ord::_Less, __cmp_cat::_Ord::_Greater): Rename to less and greater. (partial_ordering, weak_ordering, strong_ordering): Remove constructors taking __cmp_cat::_Eq parameters. Use renamed enumerators.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions