220 7239 <CAOpASk6WfzkRtSo_g=M181T6wLrRYoJFce_41ZBwWb5FWxOzLA@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: =?ISO-8859-1?Q?R=E9my_Lefevre?= <lefevreremy@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: "count_while" and "count_until" algorithms
Date: Wed, 9 Oct 2013 22:59:58 +0200
Lines: 121
Approved: news@gmane.org
Message-ID: <CAOpASk6WfzkRtSo_g=M181T6wLrRYoJFce_41ZBwWb5FWxOzLA@mail.gmail.com>
References: <CAOpASk64dV+3ZUW+Z8wcEqug_oSaztvJp1zsDB_QdAxi+fwcsA@mail.gmail.com>
 <a35fd832-27bc-48ec-a4cf-52629b992a06@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=047d7b6251b0699eb004e8552dbc
X-Trace: ger.gmane.org 1381352437 26458 80.91.229.3 (9 Oct 2013 21:00:37 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 9 Oct 2013 21:00:37 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCN7B34JVEARB54H26JAKGQEY3YWG7Q@isocpp.org Wed Oct 09 23:00:42 2013
Return-path: <std-proposals+bncBCN7B34JVEARB54H26JAKGQEY3YWG7Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f198.google.com ([209.85.212.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCN7B34JVEARB54H26JAKGQEY3YWG7Q@isocpp.org>)
	id 1VU0s5-0008Pv-2i
	for gclcip-std-proposals@m.gmane.org; Wed, 09 Oct 2013 23:00:41 +0200
Original-Received: by mail-wi0-f198.google.com with SMTP id hq15sf2040503wib.5
        for <gclcip-std-proposals@m.gmane.org>; Wed, 09 Oct 2013 14:00:40 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=7THYZhCGp3D3cidTX737Nj/ML4tN2SCYCdyaGSdhKK4=;
        b=W1e9vldpPlgOSa+Dq+2A0W1Ilg4a2MAoC0ubbXzFfOGx59IFQOF5pVydvHeV9eLwve
         mgd1dmYTAo+iXqNwmvNIS2J52eiIwlc2XSLV8K2PFHoJjBmqbgIgLJN8PI85gwxBy/92
         926yG64EYlDGTgcxe7vbkqXbFazKbxUp+JHOA1S5gednjd1gs9U2Co83zb5lhIRTEy/J
         ytECd9kgCfrD3HGPh8kO4GlvZLX2e/DiTaF4vM9gho8Qnhu1805GUH5wKC/PxpoYcWyq
         P8Z3bxJ5lw2MkmZUvSaAxbFkhg824cHV6gBocK63F6w9n8Xarka8b8AxfhH5P/FqhBOz
         BH0w==
X-Received: by 10.112.169.101 with SMTP id ad5mr3395432lbc.1.1381352439994;
        Wed, 09 Oct 2013 14:00:39 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.109.133 with SMTP id hs5ls1556319wib.25.canary; Wed, 09
 Oct 2013 14:00:38 -0700 (PDT)
X-Received: by 10.180.93.166 with SMTP id cv6mr4425716wib.37.1381352438713;
        Wed, 09 Oct 2013 14:00:38 -0700 (PDT)
Original-Received: from mail-we0-x22d.google.com (mail-we0-x22d.google.com [2a00:1450:400c:c03::22d])
        by mx.google.com with ESMTPS id i10si16984466wjz.102.1969.12.31.16.00.00
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 09 Oct 2013 14:00:38 -0700 (PDT)
Received-SPF: pass (google.com: domain of lefevreremy@gmail.com designates 2a00:1450:400c:c03::22d as permitted sender) client-ip=2a00:1450:400c:c03::22d;
Original-Received: by mail-we0-f173.google.com with SMTP id u57so1523288wes.32
        for <std-proposals@isocpp.org>; Wed, 09 Oct 2013 14:00:38 -0700 (PDT)
X-Received: by 10.180.160.240 with SMTP id xn16mr4438718wib.62.1381352438601;
 Wed, 09 Oct 2013 14:00:38 -0700 (PDT)
Original-Received: by 10.194.192.33 with HTTP; Wed, 9 Oct 2013 13:59:58 -0700 (PDT)
In-Reply-To: <a35fd832-27bc-48ec-a4cf-52629b992a06@isocpp.org>
X-Original-Sender: lefevreremy@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of lefevreremy@gmail.com designates 2a00:1450:400c:c03::22d as
 permitted sender) smtp.mail=lefevreremy@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:7239
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7239>

--047d7b6251b0699eb004e8552dbc
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Yes, it's maybe a (the) solution.


2013/10/9 Greg Marr <gregmmarr@gmail.com>

> On Tuesday, October 8, 2013 4:04:23 PM UTC-4, R=E9my Lefevre wrote:
>
>> Hi,
>>
>> I thought about two new algorithms, that could be named "count_while" an=
d
>> "count_until". Here are their behavior:
>>
>> What do you think about adding these two components to the algorithms
>> library ?
>>
>
> Should there be both count_while that takes a T to compare to, and
> count_while_if that takes a predicate?  That seems like it would fulfill
> Vlad's desire to have the word _if in there to indicate that it take a
> predicate?
>
>  --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "ISO C++ Standard - Future Proposals" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/a/isocpp.org/d/topic/std-proposals/bXrQrkBw59c/=
unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> std-proposals+unsubscribe@isocpp.org.
> To post to this group, send email to std-proposals@isocpp.org.
> Visit this group at
> http://groups.google.com/a/isocpp.org/group/std-proposals/.
>

--=20

---=20
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 e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/.

--047d7b6251b0699eb004e8552dbc
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Yes, it&#39;s maybe a (the) solution.<br></div><div class=
=3D"gmail_extra"><br><br><div class=3D"gmail_quote">2013/10/9 Greg Marr <sp=
an dir=3D"ltr">&lt;<a href=3D"mailto:gregmmarr@gmail.com" target=3D"_blank"=
>gregmmarr@gmail.com</a>&gt;</span><br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div class=3D"im"><span sty=
le=3D"font-size:13px">On Tuesday, October 8, 2013 4:04:23 PM UTC-4, R=E9my =
Lefevre wrote:</span><br>

</div><blockquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex=
;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div class=
=3D"im">Hi,<br><br>I thought about two new algorithms, that could be named =
&quot;count_while&quot; and &quot;count_until&quot;. Here are their behavio=
r:<br>

<br></div><div class=3D"im">What do you think about adding these two compon=
ents to the algorithms library ?</div></div></blockquote><div><br></div><di=
v>Should there be both count_while that takes a T to compare to, and count_=
while_if that takes a predicate? =A0That seems like it would fulfill Vlad&#=
39;s desire to have the word _if in there to indicate that it take a predic=
ate?</div>

<div><br></div></div><div class=3D"HOEnZb"><div class=3D"h5">

<p></p>

-- <br>
=A0<br>
--- <br>
You received this message because you are subscribed to a topic in the Goog=
le Groups &quot;ISO C++ Standard - Future Proposals&quot; group.<br>
To unsubscribe from this topic, visit <a href=3D"https://groups.google.com/=
a/isocpp.org/d/topic/std-proposals/bXrQrkBw59c/unsubscribe" target=3D"_blan=
k">https://groups.google.com/a/isocpp.org/d/topic/std-proposals/bXrQrkBw59c=
/unsubscribe</a>.<br>


To unsubscribe from this group and all its topics, send an email to <a href=
=3D"mailto:std-proposals%2Bunsubscribe@isocpp.org" target=3D"_blank">std-pr=
oposals+unsubscribe@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>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/" target=3D"_blank">http://groups.google.com/a/isocpp.org/gro=
up/std-proposals/</a>.<br>
</div></div></blockquote></div><br></div>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--047d7b6251b0699eb004e8552dbc--

.
