libstdc++: Remove redundant bool casts in ranges algorithms
authorJonathan Wakely <jwakely@redhat.com>
Wed, 19 Feb 2020 10:40:24 +0000 (10:40 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 19 Feb 2020 12:46:57 +0000 (12:46 +0000)
commita45fb21a10f486f6596b648e2c64bd1c7d808f18
tree636c9144cacd35b46521f78c21fba520abbffd16
parent73d531205083eaf19934b516b37b1cf4940895c7
libstdc++: Remove redundant bool casts in ranges algorithms

Some of these casts were added by me the other day, but some were
already present. I think they are all redundant following the
introduction of the boolean-testable concept in P1964R2.

* include/bits/ranges_algo.h (__find_fn, __find_first_of_fn)
(__adjacent_find_fn, __remove_if_fn, __remove_copy_if_fn)
(__unique_fn, __unique_copy_fn): Remove redundant conversions to bool.
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/ranges_algo.h