220 7178 <CAGNvRgAN6arbuAVFBFY+j=zhpWO5iSZ4CL1hYoE8i-veo64i=A@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: =?ISO-8859-1?Q?Daniel_Kr=FCgler?= <daniel.kruegler@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: "count_while" and "count_until" algorithms
Date: Tue, 8 Oct 2013 22:44:56 +0200
Lines: 16
Approved: news@gmane.org
Message-ID: <CAGNvRgAN6arbuAVFBFY+j=zhpWO5iSZ4CL1hYoE8i-veo64i=A@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>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1381265098 6980 80.91.229.3 (8 Oct 2013 20:44:58 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 8 Oct 2013 20:44:58 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCT7RVFA4QORBSO52GJAKGQE5YHDGKA@isocpp.org Tue Oct 08 22:45:03 2013
Return-path: <std-proposals+bncBCT7RVFA4QORBSO52GJAKGQE5YHDGKA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ee0-f70.google.com ([74.125.83.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCT7RVFA4QORBSO52GJAKGQE5YHDGKA@isocpp.org>)
	id 1VTe9K-0001XK-TT
	for gclcip-std-proposals@m.gmane.org; Tue, 08 Oct 2013 22:44:58 +0200
Original-Received: by mail-ee0-f70.google.com with SMTP id b15sf11945339eek.5
        for <gclcip-std-proposals@m.gmane.org>; Tue, 08 Oct 2013 13:44:58 -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:date:message-id:subject:from: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=Mraj+2sD9RNACSp7Qhq2Juk4sZz8DnMJGcHfXiARWhU=;
        b=bxE7swsi3RanwHM3ZGdixcJsLnkVAXgoq1NgW9jBNVUA6FQMPhWaTx36nL0487sN0D
         NNHrNAhhIxzf+iT0iH5YnBsF/CxpzIF7ITChvPxfJwOSahsxTeZlG/0zl0M4tvznYTos
         VCpupe+kPfD9oCBi/3eqCwRtOV5wabirKUXdz3vclCFG5aafGXvgQ1r4oZBM38Q6GMpw
         VgUs9eWj9pSQHLtlk13Rl9jAR3kusdWMmM1ekASMS9/NkXUuoK3SqR35mKljFFqPrlbT
         i4aAc43k1japRK+bBt4qpGu5Wmm3E7gn+t4za7fuledrKXkqIHoNZbAwc+gcWwuwKPDi
         aPXw==
X-Received: by 10.180.189.137 with SMTP id gi9mr1436344wic.1.1381265097951;
        Tue, 08 Oct 2013 13:44:57 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.231.6 with SMTP id tc6ls258746wic.40.gmail; Tue, 08 Oct
 2013 13:44:56 -0700 (PDT)
X-Received: by 10.194.175.133 with SMTP id ca5mr3483730wjc.19.1381265096957;
        Tue, 08 Oct 2013 13:44:56 -0700 (PDT)
Original-Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [2a00:1450:400c:c05::22c])
        by mx.google.com with ESMTPS id h16si2058583wiv.40.1969.12.31.16.00.00
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Tue, 08 Oct 2013 13:44:56 -0700 (PDT)
Received-SPF: pass (google.com: domain of daniel.kruegler@gmail.com designates 2a00:1450:400c:c05::22c as permitted sender) client-ip=2a00:1450:400c:c05::22c;
Original-Received: by mail-wi0-f172.google.com with SMTP id hn9so7278835wib.5
        for <std-proposals@isocpp.org>; Tue, 08 Oct 2013 13:44:56 -0700 (PDT)
X-Received: by 10.180.72.226 with SMTP id g2mr25319506wiv.52.1381265096857;
 Tue, 08 Oct 2013 13:44:56 -0700 (PDT)
Original-Received: by 10.216.153.8 with HTTP; Tue, 8 Oct 2013 13:44:56 -0700 (PDT)
In-Reply-To: <6e15fc38-8be3-4e74-ade9-e25a8d0e0509@isocpp.org>
X-Original-Sender: daniel.kruegler@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of daniel.kruegler@gmail.com designates 2a00:1450:400c:c05::22c as
 permitted sender) smtp.mail=daniel.kruegler@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:7178
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7178>

2013/10/8  <lefevreremy@gmail.com>:
> @Evgeny: Yes, I see the advantage to return both count and iterator, but I
> didn't find an elegant way to do it for the moment.

Traditionally a std::pair<A, B> is used for this.

- Daniel

-- 

--- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.
