[libc++][ranges] Implement `views::single`.
authorKonstantin Varlamov <varconst@apple.com>
Fri, 6 May 2022 21:17:11 +0000 (14:17 -0700)
committerKonstantin Varlamov <varconst@apple.com>
Fri, 6 May 2022 21:27:08 +0000 (14:27 -0700)
commit0102527352ff50a6d66402ab0fd8d857dcac3c5a
treecfb343e5d2fd8199cf347f17f06241698aa448ff
parent26ba347fbb0cf8abcb861aa558711f51455a0ec3
[libc++][ranges] Implement `views::single`.

This only adds the customization point object (which isn't pipeable),
the view itself has already been implemented previously.

Differential Revision: https://reviews.llvm.org/D124978
libcxx/include/__ranges/lazy_split_view.h
libcxx/include/__ranges/single_view.h
libcxx/test/std/library/description/conventions/customization.point.object/cpo.compile.pass.cpp
libcxx/test/std/ranges/range.adaptors/range.lazy.split/ctor.range.pass.cpp
libcxx/test/std/ranges/range.factories/range.single.view/cpo.pass.cpp [new file with mode: 0644]