220 15334 <CAA7U3HN8LtymbepDHH8qPFAn28eEBW-2=XaCts72tVeDJs9z8g@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Olaf van der Spek <olafvdspek@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Isn't it time we had the bool
 std::[container]::contains() family of methods?
Date: Sat, 27 Dec 2014 01:52:21 +0100
Lines: 16
Approved: news@gmane.org
Message-ID: <CAA7U3HN8LtymbepDHH8qPFAn28eEBW-2=XaCts72tVeDJs9z8g@mail.gmail.com>
References: <0959f2f8-acdd-4786-b6f3-0f05c62dcee6@isocpp.org>
	<2df86492-548f-42c8-86d6-fe1c8ba3a5a9@isocpp.org>
	<2f390ec3-b259-4150-9771-cd0d02860348@isocpp.org>
	<3743ebda-3367-4fc3-922a-f38d98e57889@isocpp.org>
	<1bccb2dd-4aa4-4f07-8958-b1d6bf092630@isocpp.org>
	<CAA7U3HMcBab8xEJU7w_r3d4cQa8d-DYwVw4BxnsHM_UjyfjAmg@mail.gmail.com>
	<46cc4da5-98d1-471f-ab31-714ac5502853@isocpp.org>
	<CAA7U3HMk1gbRaRwHHDfEM9Ov2fAm7JVw588u8tfvfFAWDwZjzQ@mail.gmail.com>
	<6ad78bb4-b21b-4978-90be-b99ef6d15414@isocpp.org>
	<m7k5tf$aql$1@ger.gmane.org>
	<CAA7U3HPHTxoU5Q4XyubtgMvN35nrDXeDGtJ=3fFAR9_+n58QCw@mail.gmail.com>
	<m7k70e$ps0$1@ger.gmane.org>
	<CAA7U3HOC113RWp5JaYb_7uFvrRdNud5XW+wXibLieUQuCkOTgQ@mail.gmail.com>
	<1c016fbb-7268-4c69-b9ab-510fb78c4125@isocpp.org>
	<m7kb0u$lte$1@ger.gmane.org>
	<6f64e72f-ac64-4985-9a00-c29a71990cd2@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1419641552 25627 80.91.229.3 (27 Dec 2014 00:52:32 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 27 Dec 2014 00:52:32 +0000 (UTC)
Cc: mw_triad@users.sourceforge.net
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5NB45SSABBBRMF7CSAKGQE7NWAV4Y@isocpp.org Sat Dec 27 01:52:25 2014
Return-path: <std-proposals+bncBC5NB45SSABBBRMF7CSAKGQE7NWAV4Y@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f69.google.com ([209.85.218.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5NB45SSABBBRMF7CSAKGQE7NWAV4Y@isocpp.org>)
	id 1Y4fcF-0006oV-Gr
	for gclcip-std-proposals@m.gmane.org; Sat, 27 Dec 2014 01:52:23 +0100
Original-Received: by mail-oi0-f69.google.com with SMTP id v63sf184588065oia.0
        for <gclcip-std-proposals@m.gmane.org>; Fri, 26 Dec 2014 16:52:22 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:cc:content-type:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=MPQlpTCkfvAChcBPTVxB+fqbWcjvsWLc91EBgCgQ4tU=;
        b=YX5iL9IJaAlwxJmc0+yzCJ/fMcyaZocQtEUuQcJo2w40Hr/GR7134dyjTLA+97cLzQ
         c38vdSWugEjyQELwQEjxpz06GpgIH4Ie/qlSh4v7KawIQC4yiuxQX6bhCC4ck1+56oYw
         7R5+QDEeLk0w7fUNoFWvczMOdHQxN2gmuz4aHCnPuuA1IOGDF3rF6hAYcBxDsGOQ6jad
         2P6rPmgQRquea6k5XCzagenf/hJ56kMVW+bYBApp79JBRvD84HfGrxaiTWIhyaYVzUFl
         zufcGQNk+SUAOxOKRwIJTGV/T+86eGv1VWofEaCF+UAnhdcjgYAUU+a8f6PRrmAjvTnq
         5XfQ==
X-Gm-Message-State: ALoCoQm/qBy+f37yedqVBWJErmXIM/qgRurt5pzVNSx3QZmskl6bNokHGHKs0vkOe9pEqKluiL4V
X-Received: by 10.182.158.73 with SMTP id ws9mr21351887obb.46.1419641542113;
        Fri, 26 Dec 2014 16:52:22 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.18.198 with SMTP id 64ls1592253qgf.96.gmail; Fri, 26 Dec
 2014 16:52:21 -0800 (PST)
X-Received: by 10.140.39.116 with SMTP id u107mr69014624qgu.98.1419641541406;
        Fri, 26 Dec 2014 16:52:21 -0800 (PST)
Original-Received: from mail-qc0-x22b.google.com (mail-qc0-x22b.google.com. [2607:f8b0:400d:c01::22b])
        by mx.google.com with ESMTPS id b5si33149736qat.123.2014.12.26.16.52.21
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Fri, 26 Dec 2014 16:52:21 -0800 (PST)
Received-SPF: pass (google.com: domain of olafvdspek@gmail.com designates 2607:f8b0:400d:c01::22b as permitted sender) client-ip=2607:f8b0:400d:c01::22b;
Original-Received: by mail-qc0-f171.google.com with SMTP id r5so7881063qcx.30
        for <std-proposals@isocpp.org>; Fri, 26 Dec 2014 16:52:21 -0800 (PST)
X-Received: by 10.140.98.162 with SMTP id o31mr69891502qge.49.1419641541316;
 Fri, 26 Dec 2014 16:52:21 -0800 (PST)
Original-Received: by 10.229.151.70 with HTTP; Fri, 26 Dec 2014 16:52:21 -0800 (PST)
In-Reply-To: <6f64e72f-ac64-4985-9a00-c29a71990cd2@isocpp.org>
X-Original-Sender: olafvdspek@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of olafvdspek@gmail.com designates 2607:f8b0:400d:c01::22b as
 permitted sender) smtp.mail=olafvdspek@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: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:15334
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/15334>

On Fri, Dec 26, 2014 at 9:40 PM, Andy Prowl <andy.prowl@gmail.com> wrote:
> To conclude, IMO what is essential to have is a standard "contains()"; other
> algorithms may be added, but I don't find it compelling.

Sounding natural sounds nice but IMO isn't a great argument.
What's the ratio of contains()'s to find()'s in your code?
In mine find() (or a wrapper of it) is far more common than contains().

-- 

--- 
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/.

.
