libstdc++: P1964R2 Wording for boolean-testable
authorJonathan Wakely <jwakely@redhat.com>
Mon, 17 Feb 2020 18:15:00 +0000 (18:15 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 17 Feb 2020 18:22:05 +0000 (18:22 +0000)
commitc5e1c1d3aba39e960cc5fb0dcd77e447e5dee7eb
tree3323f02a1bf17f6607e38300d918d2bd1df43a72
parent7ab36231a17d8a78f4355289ebbd9d32bb8ede7b
libstdc++: P1964R2 Wording for boolean-testable

This removes the complicated std::boolean concept, as agreed in Prague.

* include/bits/ranges_algo.h (__find_fn, __find_first_of_fn)
(__adjacent_find_fn): Cast result of predicate to bool.
* include/std/concepts (__boolean): Remove.
(__detail::__boolean_testable_impl, __detail::__boolean_testable): Add
new helper concepts.
(__detail::__weakly_eq_cmp_with, totally_ordered, totally_ordered_with)
(predicate): Use __boolean_testable instead of boolean.
* libsupc++/compare (__detail::__partially_ordered, _Synth3way):
Likewise.
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/ranges_algo.h
libstdc++-v3/include/std/concepts
libstdc++-v3/libsupc++/compare