220 15403 <CAFk2RUYkzTJ8M84wzjNBi_ukdmT6aHO185OX-WuauKLJRr2tTg@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Ville Voutilainen <ville.voutilainen@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: Tue, 30 Dec 2014 20:54:30 +0200
Lines: 34
Approved: news@gmane.org
Message-ID: <CAFk2RUYkzTJ8M84wzjNBi_ukdmT6aHO185OX-WuauKLJRr2tTg@mail.gmail.com>
References: <0959f2f8-acdd-4786-b6f3-0f05c62dcee6@isocpp.org>
	<3516872.4RhFvKrMWZ@tjmaciei-mobl4>
	<CALb3uoa+_WoCOHro11Wbc4=y=uM306U1FwsDYqsGOhfjbbQdnw@mail.gmail.com>
	<1457087.mBB46HcHFC@tjmaciei-mobl4>
	<CALb3uoZj6bjg=SRsRQsv5gkbjiCOedD1jXiKOzh_LNzZT-w=zw@mail.gmail.com>
	<m7ujut$8oh$1@ger.gmane.org>
	<085f07b9-6679-40ae-a737-69c70aab4e21@isocpp.org>
	<CAGg_6+PdDAcX4vM4Wy_zocTtTicGf7C8Lz+Jp_PHFWurPwmkZw@mail.gmail.com>
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 1419965689 14975 80.91.229.3 (30 Dec 2014 18:54:49 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 30 Dec 2014 18:54:49 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5JHI7A7ALRBZXJROSQKGQEXXGNRXQ@isocpp.org Tue Dec 30 19:54:39 2014
Return-path: <std-proposals+bncBC5JHI7A7ALRBZXJROSQKGQEXXGNRXQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f198.google.com ([209.85.214.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBZXJROSQKGQEXXGNRXQ@isocpp.org>)
	id 1Y61w8-0005Qk-7T
	for gclcip-std-proposals@m.gmane.org; Tue, 30 Dec 2014 19:54:32 +0100
Original-Received: by mail-ob0-f198.google.com with SMTP id vb8sf370677633obc.1
        for <gclcip-std-proposals@m.gmane.org>; Tue, 30 Dec 2014 10:54:31 -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: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=9fpk6Op5opgBQhqZakzeMV4SW9lDALnX4ZihMbStUok=;
        b=FTcesdkq69GWzJslYRlz4WPNW3YgyyJnhiSP8B7t7XaO2ATBikrEmJ/DnIsOLtdfEZ
         LbPudC5EBlWvYItHiM/htv2DovC8aTaeIta2JzKNZDo5FMZ4WyRtG4s7JODNmv4NrsBV
         I130uvvff6aJ6GHjzN8SB/GX+OQu0rE+XaXlZOWhx/8vzSXdEGEenw6Lr/uSJgiotCGW
         MTTILFSyQ1MZNjKnGCuHX4fcbrHzjJHJcwscOJCHSLMaZlnNtuwW4rj4qA1d3VYyWrJa
         5caDQR1wsRPPdHJMkq8A6T9gH7Ec7haxKItEv0vNL8jEJKEA8G9YBH/yZI0gOkIC2hqT
         fWxw==
X-Gm-Message-State: ALoCoQkG4hg61uY8r0CkEIfq9xTrXexzsybcnlZR/f1TMK++2MAhI491iyH9CD2Qeo29EvBFNgRC
X-Received: by 10.182.250.164 with SMTP id zd4mr35386675obc.19.1419965671243;
        Tue, 30 Dec 2014 10:54:31 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.42.202 with SMTP id q10ls52509obl.21.gmail; Tue, 30 Dec
 2014 10:54:30 -0800 (PST)
X-Received: by 10.182.211.70 with SMTP id na6mr37010975obc.13.1419965670701;
        Tue, 30 Dec 2014 10:54:30 -0800 (PST)
Original-Received: from mail-ob0-x22b.google.com (mail-ob0-x22b.google.com. [2607:f8b0:4003:c01::22b])
        by mx.google.com with ESMTPS id g77si24038908oib.138.2014.12.30.10.54.30
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Tue, 30 Dec 2014 10:54:30 -0800 (PST)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:4003:c01::22b as permitted sender) client-ip=2607:f8b0:4003:c01::22b;
Original-Received: by mail-ob0-f171.google.com with SMTP id uz6so45817191obc.2
        for <std-proposals@isocpp.org>; Tue, 30 Dec 2014 10:54:30 -0800 (PST)
X-Received: by 10.60.52.101 with SMTP id s5mr9306464oeo.33.1419965670608; Tue,
 30 Dec 2014 10:54:30 -0800 (PST)
Original-Received: by 10.76.154.2 with HTTP; Tue, 30 Dec 2014 10:54:30 -0800 (PST)
In-Reply-To: <CAGg_6+PdDAcX4vM4Wy_zocTtTicGf7C8Lz+Jp_PHFWurPwmkZw@mail.gmail.com>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of ville.voutilainen@gmail.com designates 2607:f8b0:4003:c01::22b as
 permitted sender) smtp.mail=ville.voutilainen@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:15403
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/15403>

On 30 December 2014 at 20:34, Nevin Liber <nevin@eviloverlord.com> wrote:
> On 30 December 2014 at 11:28, Andy Prowl <andy.prowl@gmail.com> wrote:
>>
>> On Tuesday, December 30, 2014 5:30:44 PM UTC+1, Matthew Woehlke wrote:
>>>
>>>
>>> ...which reminds me, std::map requiring the user to use std::pair is
>>> another thing I hate about STL containers :-). IMO Qt got this right;
>>> the insert method takes two parameters, i.e. the key and the value.
>>>
>>> (Is there any reason we couldn't add this as an overload?)
>>
>>
>> Doesn't emplace() do just that?
>
>
> Shhhh; it is much more fun watching people argue for a feature they claim
> (a) they absolutely have to have (b) which the standard already has and (c)
> they obviously never use.


That may be fun in a theatrical sense, but I tend to find it more
satisfactory to
disseminate information rather than disinformation, and I am a big fan of
educating programmers to use the standard library correctly. :)

-- 

--- 
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/.

.
