libstdc++: Give split_view::_Sentinel a default ctor [PR101214]
authorPatrick Palka <ppalka@redhat.com>
Fri, 16 Jul 2021 13:44:32 +0000 (09:44 -0400)
committerPatrick Palka <ppalka@redhat.com>
Fri, 16 Jul 2021 13:44:32 +0000 (09:44 -0400)
commit73464a472aa4e86359f1a5dc529394fe5152fec0
treed9bf9a2f0f268e6dbff6de3c13c330fb7440557a
parente32234536f361796e7cad8ed69a1c0bb46ee55de
libstdc++: Give split_view::_Sentinel a default ctor [PR101214]

This gives the new split_view's sentinel type a defaulted default
constructor, something which was overlooked in r12-1665.  This patch
also fixes a couple of other issues with the new split_view as reported
in the PR.

PR libstdc++/101214

libstdc++-v3/ChangeLog:

* include/std/ranges (split_view::split_view): Use std::move.
(split_view::_Iterator::_Iterator): Remove redundant
default_initializable constraint.
(split_view::_Sentinel::_Sentinel): Declare.
* testsuite/std/ranges/adaptors/split.cc (test02): New test.
libstdc++-v3/include/std/ranges
libstdc++-v3/testsuite/std/ranges/adaptors/split.cc