220 7198 <1381268094.9101.48.camel@sara> article
Path: news.gmane.org!not-for-mail
From: Magnus Fromreide <magfr@lysator.liu.se>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: "count_while" and "count_until" algorithms
Date: Tue, 08 Oct 2013 23:34:54 +0200
Lines: 27
Approved: news@gmane.org
Message-ID: <1381268094.9101.48.camel@sara>
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>
	 <2d16db0e-fb46-4e1f-956f-db3407a6fb4c@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 1381268094 8114 80.91.229.3 (8 Oct 2013 21:34:54 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 8 Oct 2013 21:34:54 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDELLREETMBRBAHV2GJAKGQEYUCJMWQ@isocpp.org Tue Oct 08 23:34:58 2013
Return-path: <std-proposals+bncBDELLREETMBRBAHV2GJAKGQEYUCJMWQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f197.google.com ([209.85.212.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDELLREETMBRBAHV2GJAKGQEYUCJMWQ@isocpp.org>)
	id 1VTevh-0002eP-IF
	for gclcip-std-proposals@m.gmane.org; Tue, 08 Oct 2013 23:34:57 +0200
Original-Received: by mail-wi0-f197.google.com with SMTP id hm2sf9291090wib.8
        for <gclcip-std-proposals@m.gmane.org>; Tue, 08 Oct 2013 14:34:57 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=message-id:subject:from:to:date:in-reply-to:references:mime-version
         :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=xcK0licG0ioJ4OcKwJld2boBU33qo3ffhQYdpaBTzpo=;
        b=PqBmSh5Xu7d1OJB8yHrfKng9fRgdQNkfgvzY1qhJrOzX/DgV8xWweJm0LV1Iic3Xeg
         xNmhpJuMyktTSHXkfXaMc3sU11RAApAZ6zpssfewTD6TcIxewF6O6f/O/dmxdFGnN1l2
         icm0mSfCqkKC10Cd3i4eOMxmwoQti1lsYANPi+XuIZ2p7/htvbXwXpcY8MppNeGO4MJK
         0fStBIclJTjSsVV2V46Oy6q2zFvf0H4tOp58Ss9kUeXvTI0hD1M9qE0Fg5ki7NgmA5uX
         frlX9ojfEWiakDth1ULKICp8R+N/NLG0n6xvnQyXkWvZxeF1DR+0oQ4NmXN0CdL/F4iy
         SAeQ==
X-Received: by 10.180.36.97 with SMTP id p1mr1521669wij.3.1381268096958;
        Tue, 08 Oct 2013 14:34:56 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.11.67 with SMTP id o3ls289534wib.48.gmail; Tue, 08 Oct
 2013 14:34:56 -0700 (PDT)
X-Received: by 10.204.78.8 with SMTP id i8mr3698639bkk.3.1381268096063;
        Tue, 08 Oct 2013 14:34:56 -0700 (PDT)
Original-Received: from mail.lysator.liu.se (mail.lysator.liu.se. [2001:6b0:17:f0a0::3])
        by mx.google.com with ESMTPS id cy5si5531635bkc.221.1969.12.31.16.00.00
        (version=TLSv1 cipher=RC4-SHA bits=128/128);
        Tue, 08 Oct 2013 14:34:55 -0700 (PDT)
Received-SPF: pass (google.com: domain of magfr@lysator.liu.se designates 2001:6b0:17:f0a0::3 as permitted sender) client-ip=2001:6b0:17:f0a0::3;
Original-Received: from mail.lysator.liu.se (localhost [127.0.0.1])
	by mail.lysator.liu.se (Postfix) with ESMTP id 2CD0740006
	for <std-proposals@isocpp.org>; Tue,  8 Oct 2013 23:34:55 +0200 (CEST)
Original-Received: by mail.lysator.liu.se (Postfix, from userid 1004)
	id 209064000C; Tue,  8 Oct 2013 23:34:55 +0200 (CEST)
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	bernadotte.lysator.liu.se
X-Spam-Level: 
X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED
	autolearn=disabled version=3.3.1
X-Spam-Score: -1.0
Original-Received: from [192.168.0.101] (h-176-10-249-241.na.cust.bahnhof.se [176.10.249.241])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mail.lysator.liu.se (Postfix) with ESMTPSA id D80A040006
	for <std-proposals@isocpp.org>; Tue,  8 Oct 2013 23:34:54 +0200 (CEST)
In-Reply-To: <2d16db0e-fb46-4e1f-956f-db3407a6fb4c@isocpp.org>
X-Mailer: Evolution 3.8.5-2
X-Virus-Scanned: ClamAV using ClamSMTP
X-Original-Sender: magfr@lysator.liu.se
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of magfr@lysator.liu.se designates 2001:6b0:17:f0a0::3 as permitted
 sender) smtp.mail=magfr@lysator.liu.se
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:7198
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7198>

On Tue, 2013-10-08 at 13:56 -0700, Vlad from Moscow wrote:
> I want to change the name in the context of my proposal of
> std::accumulate_first_if that there will be a common name for such
> types of algorithms.
>  
> By the way using std::find_if with a predicate resolves the two tasks:
> returning the count and the last iterator.

If we should change the names then I think the best name would be

distance_first_if

since it is about the distance from one point to another in a range, and
the end point is defined as the first entry matching a predicate.

(I also think the bikeshed should be pink)

/MF

-- 

--- 
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/.

.
