libstdc++: Add a testsuite range type that has a sized sentinel
authorPatrick Palka <ppalka@redhat.com>
Tue, 3 Mar 2020 03:32:22 +0000 (22:32 -0500)
committerPatrick Palka <ppalka@redhat.com>
Wed, 4 Mar 2020 03:44:39 +0000 (22:44 -0500)
commit26af9cd8af1b3b603434586a17127d8c3d2d8266
tree8a0eb4a0543be48f189b6ba65ede2d3c760d6f17
parentd6d4b339f5b77070ee9ae896c2f20ba315b7b7e0
libstdc++: Add a testsuite range type that has a sized sentinel

This adds a testsuite range type whose end() is a sized sentinel to
<testsuite_iterators.h>, which will be used in the tests that verify LWG 3355.

libstdc++-v3/ChangeLog:

* testsuite/util/testsuite_iterators.h (test_range::get_iterator): Make
protected instead of private.
(test_sized_range_sized_sent): New.
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/util/testsuite_iterators.h