220 7235 <a35fd832-27bc-48ec-a4cf-52629b992a06@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Greg Marr <gregmmarr@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: "count_while" and "count_until" algorithms
Date: Wed, 9 Oct 2013 09:02:43 -0700 (PDT)
Lines: 64
Approved: news@gmane.org
Message-ID: <a35fd832-27bc-48ec-a4cf-52629b992a06@isocpp.org>
References: <CAOpASk64dV+3ZUW+Z8wcEqug_oSaztvJp1zsDB_QdAxi+fwcsA@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_220_21458945.1381334563966"
X-Trace: ger.gmane.org 1381334564 8055 80.91.229.3 (9 Oct 2013 16:02:44 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 9 Oct 2013 16:02:44 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDEZH3XFPIIKJ7GVSICRUBB7RLDAS@isocpp.org Wed Oct 09 18:02:48 2013
Return-path: <std-proposals+bncBDEZH3XFPIIKJ7GVSICRUBB7RLDAS@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vc0-f198.google.com ([209.85.220.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDEZH3XFPIIKJ7GVSICRUBB7RLDAS@isocpp.org>)
	id 1VTwDm-0003WL-7h
	for gclcip-std-proposals@m.gmane.org; Wed, 09 Oct 2013 18:02:46 +0200
Original-Received: by mail-vc0-f198.google.com with SMTP id ht10sf1872048vcb.9
        for <gclcip-std-proposals@m.gmane.org>; Wed, 09 Oct 2013 09:02:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=6730TaxEBbxkZ/12kQpjgo2FZkrxyXEuuPJWD6cz1z4=;
        b=Sf5sE7mn5RNBGaiDXjPB6W43g+fjCs9Y29J2ydwkfn75RDOqz1vKXH6FUGa6DMc+vz
         bK2vAINXkTzGv9lnaAzsWC96gbv7oOACI4WoQ5QwZRqWpZq4DCPUmU0nMmfLbZyiRe8K
         ZIHNAgxbVAFOjfmh6uhcRU8a/xFXLB6B8eNXdGF5aOqmuzLYY7HgJc94lNYaeLPqPzFq
         4IwtpUVS6Xzm/Znp2QXZQhO4EGxFNq5IAHHM8Ez/pCCr10PHESo6v/p9x0vK3ssqU97C
         g4sh0Fd1IY+tXX6FXqCoIVyctdVDh2JsTwuWkDAbLqS/eRXH0uEIGN+rh6rwR0f1Phtu
         RTMA==
X-Received: by 10.236.176.1 with SMTP id a1mr8306911yhm.10.1381334565340;
        Wed, 09 Oct 2013 09:02:45 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.108.230 with SMTP id hn6ls681160qeb.81.gmail; Wed, 09 Oct
 2013 09:02:44 -0700 (PDT)
X-Received: by 10.49.105.33 with SMTP id gj1mr29954qeb.32.1381334564344;
        Wed, 09 Oct 2013 09:02:44 -0700 (PDT)
In-Reply-To: <CAOpASk64dV+3ZUW+Z8wcEqug_oSaztvJp1zsDB_QdAxi+fwcsA@mail.gmail.com>
X-Original-Sender: gregmmarr@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:7235
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7235>

------=_Part_220_21458945.1381334563966
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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" and=
=20
> "count_until". Here are their behavior:
>
> What do you think about adding these two components to the algorithms=20
> library ?
>

Should there be both count_while that takes a T to compare to, and=20
count_while_if that takes a predicate?  That seems like it would fulfill=20
Vlad's desire to have the word _if in there to indicate that it take a=20
predicate?

--=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/.

------=_Part_220_21458945.1381334563966
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><span style=3D"font-size: 13px;">On Tuesday, October 8, 20=
13 4:04:23 PM UTC-4, R=E9my Lefevre wrote:</span><br><blockquote class=3D"g=
mail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc sol=
id;padding-left: 1ex;"><div dir=3D"ltr">Hi,<br><br>I thought about two new =
algorithms, that could be named "count_while" and "count_until". Here are t=
heir behavior:<br><br>What do you think about adding these two components t=
o the algorithms library ?</div></blockquote><div><br></div><div>Should the=
re be both count_while that takes a T to compare to, and count_while_if tha=
t takes a predicate? &nbsp;That seems like it would fulfill Vlad's desire t=
o have the word _if in there to indicate that it take a predicate?</div><di=
v><br></div></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 />

------=_Part_220_21458945.1381334563966--

.
