220 7181 <CAGg_6+OwQKJZYCt_s0JSKWkJxHMvBwdN8Zz8jwqku0vGXvH8_w@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Nevin Liber <nevin@eviloverlord.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: "count_while" and "count_until" algorithms
Date: Tue, 8 Oct 2013 15:50:34 -0500
Lines: 74
Approved: news@gmane.org
Message-ID: <CAGg_6+OwQKJZYCt_s0JSKWkJxHMvBwdN8Zz8jwqku0vGXvH8_w@mail.gmail.com>
References: <CAOpASk64dV+3ZUW+Z8wcEqug_oSaztvJp1zsDB_QdAxi+fwcsA@mail.gmail.com>
 <fe7981d7-4eaf-4132-9150-4ec7d3ff7ac4@isocpp.org> <2602b3fd-fccd-459b-be1a-93a12005dc5c@isocpp.org>
 <231e6ef1-599d-4877-be6c-55e85e5a4e41@isocpp.org> <6e15fc38-8be3-4e74-ade9-e25a8d0e0509@isocpp.org>
 <CAGNvRgAN6arbuAVFBFY+j=zhpWO5iSZ4CL1hYoE8i-veo64i=A@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a11337468f9be1f04e840ed73
X-Trace: ger.gmane.org 1381265474 11454 80.91.229.3 (8 Oct 2013 20:51:14 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 8 Oct 2013 20:51:14 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCE35H5S6IDBBQ7A2GJAKGQEMAOA7GA@isocpp.org Tue Oct 08 22:51:18 2013
Return-path: <std-proposals+bncBCE35H5S6IDBBQ7A2GJAKGQEMAOA7GA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vb0-f69.google.com ([209.85.212.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCE35H5S6IDBBQ7A2GJAKGQEMAOA7GA@isocpp.org>)
	id 1VTeFQ-0004fS-DO
	for gclcip-std-proposals@m.gmane.org; Tue, 08 Oct 2013 22:51:16 +0200
Original-Received: by mail-vb0-f69.google.com with SMTP id e13sf17666248vbg.8
        for <gclcip-std-proposals@m.gmane.org>; Tue, 08 Oct 2013 13:51:15 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=mime-version:sender: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=B5qAiGzp3AjkZiLSs0/p1uB9TlDj7zrCVT5HG1C2P+k=;
        b=FSWJ+E9D/t5W0cBJHHQhDBtmjCub4IxO6JQfv02p7e62JOe+c7kEBcy5CD8yjs/xbX
         FzH7LR2TZEngMSgNFh5fX7DJTHdmn62asGQZga6hdxaUfk7qbh9h14xFqHthXGjLAPgp
         MkIG8O+Q6UccmKxIQGnC7fO2v7NLorWJRRZmhAhExVLeo3JT/Pe+cE43C/KTVWE7lxl2
         HItEIGIkGJcmNdyykvdcraBDP8fixK5krB1FS3rAdj9lRenZQ3KSDwXoEnjXBgaL3tMm
         kRMf/+dMzhUxpvSB97tdrTVXc7gFz/OAQIbzG4HYzuldvgShSppcpJW9eTU6x2LVISug
         pZNw==
X-Received: by 10.236.51.170 with SMTP id b30mr3550794yhc.45.1381265475513;
        Tue, 08 Oct 2013 13:51:15 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.35.133 with SMTP id h5ls455535qej.54.gmail; Tue, 08 Oct
 2013 13:51:15 -0700 (PDT)
X-Received: by 10.49.83.40 with SMTP id n8mr4962445qey.88.1381265475064;
        Tue, 08 Oct 2013 13:51:15 -0700 (PDT)
Original-Received: from mail-qc0-x229.google.com (mail-qc0-x229.google.com [2607:f8b0:400d:c01::229])
        by mx.google.com with ESMTPS id l4si7137021qcz.64.1969.12.31.16.00.00
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Tue, 08 Oct 2013 13:51:15 -0700 (PDT)
Received-SPF: pass (google.com: domain of nliber@gmail.com designates 2607:f8b0:400d:c01::229 as permitted sender) client-ip=2607:f8b0:400d:c01::229;
Original-Received: by mail-qc0-f169.google.com with SMTP id c9so6541241qcz.28
        for <std-proposals@isocpp.org>; Tue, 08 Oct 2013 13:51:15 -0700 (PDT)
X-Received: by 10.229.213.1 with SMTP id gu1mr4978346qcb.13.1381265474946;
 Tue, 08 Oct 2013 13:51:14 -0700 (PDT)
Original-Sender: nliber@gmail.com
Original-Received: by 10.49.60.70 with HTTP; Tue, 8 Oct 2013 13:50:34 -0700 (PDT)
In-Reply-To: <CAGNvRgAN6arbuAVFBFY+j=zhpWO5iSZ4CL1hYoE8i-veo64i=A@mail.gmail.com>
X-Original-Sender: nevin@eviloverlord.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of nliber@gmail.com designates 2607:f8b0:400d:c01::229 as permitted
 sender) smtp.mail=nliber@gmail.com;       dkim=pass header.i=@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:7181
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7181>

--001a11337468f9be1f04e840ed73
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 8 October 2013 15:44, Daniel Kr=FCgler <daniel.kruegler@gmail.com> wrote=
:

> 2013/10/8  <lefevreremy@gmail.com>:
> > @Evgeny: Yes, I see the advantage to return both count and iterator, bu=
t
> I
> > didn't find an elegant way to do it for the moment.
>
> Traditionally a std::pair<A, B> is used for this.
>

While true, I really rather we get away from doing so, as "iterator" and
"count" are far better field names than "first" and "second".
--=20
 Nevin ":-)" Liber  <mailto:nevin@eviloverlord.com>  (847) 691-1404

--=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/.

--001a11337468f9be1f04e840ed73
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On 8 October 2013 15:44, Daniel Kr=FCgler <span dir=3D"ltr=
">&lt;<a href=3D"mailto:daniel.kruegler@gmail.com" target=3D"_blank">daniel=
..kruegler@gmail.com</a>&gt;</span> wrote:<br><div class=3D"gmail_extra"><di=
v class=3D"gmail_quote">

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">2013/10/8 =A0&lt;<a href=3D"mailto:lefevrere=
my@gmail.com">lefevreremy@gmail.com</a>&gt;:<br>
<div class=3D"im">&gt; @Evgeny: Yes, I see the advantage to return both cou=
nt and iterator, but I<br>
&gt; didn&#39;t find an elegant way to do it for the moment.<br>
<br>
</div>Traditionally a std::pair&lt;A, B&gt; is used for this.<br></blockquo=
te><div><br></div><div>While true, I really rather we get away from doing s=
o, as &quot;iterator&quot; and &quot;count&quot; are far better field names=
 than &quot;first&quot; and &quot;second&quot;.<br>

</div></div>-- <br>=A0Nevin &quot;:-)&quot; Liber=A0 &lt;mailto:<a href=3D"=
mailto:nevin@eviloverlord.com" target=3D"_blank">nevin@eviloverlord.com</a>=
&gt;=A0 (847) 691-1404
</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 />

--001a11337468f9be1f04e840ed73--

.
