220 15329 <1c016fbb-7268-4c69-b9ab-510fb78c4125@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Andy Prowl <andy.prowl@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: Fri, 26 Dec 2014 10:02:07 -0800 (PST)
Lines: 64
Approved: news@gmane.org
Message-ID: <1c016fbb-7268-4c69-b9ab-510fb78c4125@isocpp.org>
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>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_4421_2008359295.1419616927581"
X-Trace: ger.gmane.org 1419616937 9241 80.91.229.3 (26 Dec 2014 18:02:17 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 26 Dec 2014 18:02:17 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCG63E4DYQKRBIGF62SAKGQE5RH3KMQ@isocpp.org Fri Dec 26 19:02:10 2014
Return-path: <std-proposals+bncBCG63E4DYQKRBIGF62SAKGQE5RH3KMQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pa0-f69.google.com ([209.85.220.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCG63E4DYQKRBIGF62SAKGQE5RH3KMQ@isocpp.org>)
	id 1Y4ZDF-0006GA-Pq
	for gclcip-std-proposals@m.gmane.org; Fri, 26 Dec 2014 19:02:09 +0100
Original-Received: by mail-pa0-f69.google.com with SMTP id et14sf81971358pad.0
        for <gclcip-std-proposals@m.gmane.org>; Fri, 26 Dec 2014 10:02:08 -0800 (PST)
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
         :content-type:x-original-sender:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=Ga2AYsSaH5TEgNuVCtOYKW5yaQKmUY78ygkwl689/kM=;
        b=VrIShS/Esvbd0kbkpZacUNQGW94N6t2+LzLrd2LOS3NidEq0ZMZN3iXi+WVRT6yo/6
         FM7L4rLfEm5HvamtnQcXcho+vOh1HrTMEuWrQ7kvSZmA3ZimqjlGLlQRETwk/l/shsbi
         mYt3KFR6f50dBYHk7HOi4rJwCLPDnKiA8+rrwRFxfGKKd4MCMsw1y0vcETgQg7ELXYRR
         VSA5V5+sonN1B5cRGiS5I/CjLOpYyt3ZC8ccQ+YJeawemcLaO8gP7hxaWtATZZppKwH0
         a+hwHJaA/EkbKrXG4/Nr0r0zs0D2SuHLGUjEfo84MJpda8ELDL39Yc0SOifnzWAxClrc
         MHsw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:content-type:x-original-sender:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=Ga2AYsSaH5TEgNuVCtOYKW5yaQKmUY78ygkwl689/kM=;
        b=ledn/ud9jupKBKcWhvEaUGMNJm4YJbh6+biCzfnlARfioWRbadQlw1OA9xUtm1tVdi
         qrSc0kESkv3v9Htjzj+SfB98XIqe6O8w8RcAlLf8ngsx6XT8vT0RiE7bAdBjsMRcAT7O
         k3udfMcOz0sWFzmGBcGgb8oPCTm2oV/x7h6vWkGdqg1ls3mE6LHHWY+2yPQ3cFxY0WAX
         idslZPcnkj4qtJR4kAawrTZrtWpA33RHnxVNPB3YYpKKolnVyCFIK69qYAXaG9eXjZTj
         0D4Qmi+SSwRls+yhd0IEH/50lmN9jE2/bOw7ACcAy0dTQFQGtr5yKWU8xVRi8UQ60fpD
         bbCw==
X-Gm-Message-State: ALoCoQkuaeCU7ANNtJlG5M2R0I7GhxYmDipjsGxsh2Kf+acEKapWriVPfYkMThY5Q39mxGHSlKpv
X-Received: by 10.66.222.135 with SMTP id qm7mr35213837pac.20.1419616928697;
        Fri, 26 Dec 2014 10:02:08 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.93.102 with SMTP id c93ls1479155qge.18.gmail; Fri, 26 Dec
 2014 10:02:07 -0800 (PST)
X-Received: by 10.140.28.180 with SMTP id 49mr585465qgz.4.1419616927981;
        Fri, 26 Dec 2014 10:02:07 -0800 (PST)
In-Reply-To: <CAA7U3HOC113RWp5JaYb_7uFvrRdNud5XW+wXibLieUQuCkOTgQ@mail.gmail.com>
X-Original-Sender: andy.prowl@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:15329
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/15329>

------=_Part_4421_2008359295.1419616927581
Content-Type: multipart/alternative; 
	boundary="----=_Part_4422_990137522.1419616927586"

------=_Part_4422_990137522.1419616927586
Content-Type: text/plain; charset=UTF-8

While I agree with most of what has been written in the last few messages, 
I feel we are slowly diverging from the purpose of the original post, 
perhaps unnecessarily enlarging its scope.

I think an algorithm like "contains()" for "containers" is such an obvious 
and elementary operation that it ought to be in the standard library: it is 
simpler, easier to teach, and easier to understand than the current "!= 
end()" idiom.

IMO a proposal should be written for adding this function, and keeping its 
scope narrow may increase its chances to get accepted.

Kind regards,

Andy

-- 

--- 
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/.

------=_Part_4422_990137522.1419616927586
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">While I agree with most of what has been written in the la=
st few messages, I feel we are slowly diverging from the purpose of the ori=
ginal post, perhaps unnecessarily enlarging its scope.<br><br>I think an al=
gorithm like "contains()" for "containers" is such an obvious and elementar=
y operation that it ought to be in the standard library: it is simpler, eas=
ier to teach, and easier to understand than the current "!=3D end()" idiom.=
<br><br>IMO a proposal should be written for adding this function, and keep=
ing its scope narrow may increase its chances to get accepted.<br><div><br>=
Kind regards,<br><br></div><div>Andy</div></div>

<p></p>

-- <br />
<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 <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<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_4422_990137522.1419616927586--
------=_Part_4421_2008359295.1419616927581--

.
