libstdc++: Enforce LWG 3472 preconditions on std::counted_iterator
authorJonathan Wakely <jwakely@redhat.com>
Thu, 10 Sep 2020 16:09:15 +0000 (17:09 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 10 Sep 2020 16:09:15 +0000 (17:09 +0100)
commitafea21f9612545282db95872021d7587c9d5b0d4
tree8ae10a4d9b96a41e0b9a8d40a4fb56e3b51f4276
parent0ed757604f4e232324ca798e46f3d8bf7e35b009
libstdc++: Enforce LWG 3472 preconditions on std::counted_iterator

libstdc++-v3/ChangeLog:

* include/bits/stl_iterator.h (counted_iterator): Add assertions
to check preconditions added by LWG 3472.
libstdc++-v3/include/bits/stl_iterator.h