]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Simplify construction of comparison category types
authorJonathan Wakely <jwakely@redhat.com>
Fri, 24 Jan 2020 17:07:01 +0000 (17:07 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 24 Jan 2020 17:17:16 +0000 (17:17 +0000)
commit482eeff5f114c7635c1a06edb2deee3e5433c3f3
tree742ee65091a59544766c36453fad64114fb4a614
parent64c9f2d9972ad359a32f0a97ee0a806c2532db15
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.
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/compare
This page took 0.0595 seconds and 5 git commands to generate.