Topic: Add 'is_partitioned_until' algorithm to the
Author: =?UTF-8?B?R2HFoXBlciBBxb5tYW4=?= <gasper.azman@gmail.com>
Date: Mon, 26 Mar 2018 19:35:56 +0100
Raw View
--f403045c5a2a98937f0568550cb9
Content-Type: text/plain; charset="UTF-8"
I'd second the motion. It goes with Stepanov's adage of "return all useful
things your algorithm computes".
G
On Mon, Mar 26, 2018 at 6:36 PM, Alexander Zaitsev <zamazan4ik@gmail.com>
wrote:
> Hello,
>
> I am working on proposal about adding 'is_partitioned_until' to STL. In
> attachments you can find this proposal (in PDF and HTML formats). Also you
> can find them on GitHub: https://github.com/ZaMaZaN4iK/ConfsANDProps/tree/
> master/Proposals
>
> Idea of the proposal is simple. 'is_partitioned' returns true or false.
> But we can't get information about "Which subrange is partitioned?".
> is_partitioned_until is written for it.
>
> Implementation is available in Boost.Algorithm library:
> https://github.com/boostorg/algorithm/blob/develop/include/boost/
> algorithm/is_partitioned_until.hpp
> So you can play with it on wandbox.org
>
> Warn: in .hpp file information about return iterator for
> 'is_partitioned_until' is wrong. Will be fixed soon.
>
> --
> You received this message because you are subscribed to the Google Groups
> "ISO C++ Standard - Future Proposals" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to std-proposals+unsubscribe@isocpp.org.
> To post to this group, send email to std-proposals@isocpp.org.
> To view this discussion on the web visit https://groups.google.com/a/
> isocpp.org/d/msgid/std-proposals/2adc8579-63d6-4f53-
> a866-9de7572678c4%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/2adc8579-63d6-4f53-a866-9de7572678c4%40isocpp.org?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAANG%3DkWMz8SrNCmGb7AheDN3_5qPar5VwWWoH0yJnnmccSp67Q%40mail.gmail.com.
--f403045c5a2a98937f0568550cb9
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">I'd second the motion. It goes with Stepanov's ada=
ge of "return all useful things your algorithm computes".<div><br=
></div><div>G</div></div><div class=3D"gmail_extra"><br><div class=3D"gmail=
_quote">On Mon, Mar 26, 2018 at 6:36 PM, Alexander Zaitsev <span dir=3D"ltr=
"><<a href=3D"mailto:zamazan4ik@gmail.com" target=3D"_blank">zamazan4ik@=
gmail.com</a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=
=3D"ltr">Hello,<div><br></div><div>I am working on proposal about adding &#=
39;is_partitioned_until' to STL. In attachments you can find this propo=
sal (in PDF and HTML formats). Also you can find them on GitHub:=C2=A0<a hr=
ef=3D"https://github.com/ZaMaZaN4iK/ConfsANDProps/tree/master/Proposals" ta=
rget=3D"_blank">https://github.com/<wbr>ZaMaZaN4iK/ConfsANDProps/tree/<wbr>=
master/Proposals</a></div><div><br></div><div>Idea of the proposal is simpl=
e. 'is_partitioned' returns true or false. But we can't get inf=
ormation about "Which subrange is partitioned?". is_partitioned_u=
ntil is written for it.</div><div><br></div><div>Implementation is availabl=
e in Boost.Algorithm library:=C2=A0<a href=3D"https://github.com/boostorg/a=
lgorithm/blob/develop/include/boost/algorithm/is_partitioned_until.hpp" tar=
get=3D"_blank">https://github.com/<wbr>boostorg/algorithm/blob/<wbr>develop=
/include/boost/<wbr>algorithm/is_partitioned_<wbr>until.hpp</a></div><div>S=
o you can play with it on <a href=3D"http://wandbox.org" target=3D"_blank">=
wandbox.org</a></div><div><br></div><div>Warn: in .hpp file information abo=
ut return iterator for 'is_partitioned_until' is wrong. Will be fix=
ed soon.</div></div><span class=3D"HOEnZb"><font color=3D"#888888">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org" target=3D"_=
blank">std-proposals+unsubscribe@<wbr>isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">std-proposals@isocpp.org</a>.<br>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/2adc8579-63d6-4f53-a866-9de7572678c4%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter" target=3D"_blank">=
https://groups.google.com/a/<wbr>isocpp.org/d/msgid/std-<wbr>proposals/2adc=
8579-63d6-4f53-<wbr>a866-9de7572678c4%40isocpp.org</a><wbr>.<br>
</font></span></blockquote></div><br></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAANG%3DkWMz8SrNCmGb7AheDN3_5qPar5VwW=
WoH0yJnnmccSp67Q%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAANG%3DkWMz8Sr=
NCmGb7AheDN3_5qPar5VwWWoH0yJnnmccSp67Q%40mail.gmail.com</a>.<br />
--f403045c5a2a98937f0568550cb9--
.