libstdc++: Implement P1994R1 changes to ranges::elements_view
authorPatrick Palka <ppalka@redhat.com>
Thu, 27 Aug 2020 01:49:51 +0000 (21:49 -0400)
committerPatrick Palka <ppalka@redhat.com>
Thu, 27 Aug 2020 01:49:51 +0000 (21:49 -0400)
commit97ab5daa6c1186d3b10872cc1d5b05da247d102c
tree47239b960ca2fa70bd6a9aa3b3e69ca9727420ab
parent57ea089421a3cfce936f91f3c0c92bf95ac71da1
libstdc++: Implement P1994R1 changes to ranges::elements_view

The example from the paper doesn't compile without the proposed
resolution for LWG 3406, so we'll add a testcase for this once the
proposed resolution is implemented.

libstdc++-v3/ChangeLog:

* include/std/ranges (elements_view::end): Replace these two
overloads with four new overloads.
(elements_view::_Iterator::operator==): Remove.
(elements_view::_Iterator::operator-): Likewise.
(elements_view::_Sentinel): Define.
libstdc++-v3/include/std/ranges