220 33505 <b7cc5b96-2165-4b4d-a9d3-7ddec49ca626@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: david.bolvansky@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Free function std::contains in algoritm and map
Date: Tue, 1 Aug 2017 10:22:20 -0700 (PDT)
Lines: 265
Approved: news@gmane.org
Message-ID: <b7cc5b96-2165-4b4d-a9d3-7ddec49ca626@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_5247_132522116.1501608140972"
X-Trace: blaine.gmane.org 1501608147 28955 195.159.176.226 (1 Aug 2017 17:22:27 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 1 Aug 2017 17:22:27 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDSMRTMFUIFRBTPRQLGAKGQETKX6PIA@isocpp.org Tue Aug 01 19:22:23 2017
Return-path: <std-proposals+bncBDSMRTMFUIFRBTPRQLGAKGQETKX6PIA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pf0-f199.google.com ([209.85.192.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDSMRTMFUIFRBTPRQLGAKGQETKX6PIA@isocpp.org>)
	id 1dcas5-00070S-3R
	for gclcip-std-proposals@m.gmane.org; Tue, 01 Aug 2017 19:22:17 +0200
Original-Received: by mail-pf0-f199.google.com with SMTP id t187sf22748064pfb.0
        for <gclcip-std-proposals@m.gmane.org>; Tue, 01 Aug 2017 10:22:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:subject:mime-version:x-original-sender
         :reply-to:precedence:mailing-list:list-id:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=WDRSux9DF1pJI510WMKYQoHNGbQtDxdBB1/xo9Al5rw=;
        b=RCgBiQaycHZ+lGEDU8Kj17jG73virRPHPzxiF6wgxrO2q0dbyhCxz59QY7A1S4TsnM
         iUqqIyL88jHzr5sf9dJ983eI30grdXrMx2lXCKpB52wycfTCtEx1FZ3GcWEm7vqrwWA1
         EA7GIV42wt1VBu5ud+7o/pt+DofvuJLJTjsjSBy6SmAgJP6RHAgSOztAWqiOb/Ch8m98
         9SOKrxi0Bj9U36mCMqp7mTA/vIpCzwdSJjXswWm1LDja5D8P8/nkbDV+9xt5VlPa/PZm
         FVekIx8e4/fEbtfWwduf3ScGUdQEHOUnaXCxZ6qSVFwl5twqRfbH/7IUgXGIBw63jNWS
         TSrg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:subject:mime-version:x-original-sender
         :reply-to:precedence:mailing-list:list-id:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=WDRSux9DF1pJI510WMKYQoHNGbQtDxdBB1/xo9Al5rw=;
        b=LveKXI8AxvMczXae2rcdVpgYL9KLhLqZJ51ChtmNy+tuQF/OYqNA93ERKacZVNNwGT
         CVxM2NNRveogW/agLLR0suX/9i8Vs84auX1w1XfDPMbNiVTp4FSM1FCjMYAcDZzvpmea
         pjBpZpMy/rJ8cAIdizXIRF6uYq+BPJV19zDAiJXeY6w1s9wEDTbjva3qFu/UQtZJDXYz
         ss9bXz6XESa+5Ac8kEsWWPddnwauiZgN6yuydbPG6w2LLfFFmIMBQ7tqVOCty5cRYk4P
         y8OozNUVCzGN8Jxao/T94VK+KDAP1f8G0xUEOQm/NXPXxJyQdKzzEP7j1pCFopEFPEfG
         bzpA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:message-id:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=WDRSux9DF1pJI510WMKYQoHNGbQtDxdBB1/xo9Al5rw=;
        b=dIH3nzIWqBq3x4nm7UWoqGgq6GSkYaSFY4gFDpreF6AguvzTEInEzPSBVxQxEQkbjr
         Ehsat7MNqrASqU8x0YwAD22bkrZ0PQQGMyeObzuLyqCW8h/G7aro3nbuK0s4k+v/oiOK
         usd8ZquN6UEmUiCu2vHuOOVHhGk/giRjbGNxNfyZy2j+7UtZ9rdEbvAtuaLatcMZgToB
         HP84IL1eX0n8tqeCPpwtG1pTED+wlD8BIeeKMtrwiHn1v5FDIowMRZGrMLb37JhDacA8
         UiQOcogma62LLiK3/6wuY5hxMeETWhAP4vMOukB7MRWNa+12Pk6Ddgnwav9mFJUpwRyo
         dgYQ==
X-Gm-Message-State: AIVw113G+7wKovPlwuLGvkPhww++IuCzU5FjxNR34IGUeCNll7rfm3n6
	5otNAv5PnTuBTY+4
X-Received: by 10.99.123.4 with SMTP id w4mr15471129pgc.124.1501608142870;
        Tue, 01 Aug 2017 10:22:22 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.57.195 with SMTP id g186ls1565445ioa.25.gmail; Tue, 01 Aug
 2017 10:22:21 -0700 (PDT)
X-Received: by 10.31.179.145 with SMTP id c139mr101321vkf.24.1501608141420;
        Tue, 01 Aug 2017 10:22:21 -0700 (PDT)
X-Original-Sender: david.bolvansky@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: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://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>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:33505
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33505>

------=_Part_5247_132522116.1501608140972
Content-Type: multipart/alternative; 
	boundary="----=_Part_5248_693864134.1501608140973"

------=_Part_5248_693864134.1501608140973
Content-Type: text/plain; charset="UTF-8"

Instead of comparing with end(), there could be a new function - *contains.*

Now

if(std::find(vector.begin(), vector.end(), item) != vector.end()){
    // found
} else {
    // not found
}

 // maps

if(map.find("key") != map.end()){
    // found
} else {
    // not found
}



I propose "contains" function:

if(std::contains(vector.begin(), vector.end(), item)){
    // found
} else {
    // not found
}

 // maps

if(map.contains("key")){
    // found
} else {
    // not found
}


-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/b7cc5b96-2165-4b4d-a9d3-7ddec49ca626%40isocpp.org.

------=_Part_5248_693864134.1501608140973
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Instead of comparing with end(), there could be a new func=
tion -=C2=A0<b>contains.</b><div><br></div><div>Now</div><div><br></div><di=
v><div class=3D"prettyprint" style=3D"background-color: rgb(250, 250, 250);=
 border-color: rgb(187, 187, 187); border-style: solid; border-width: 1px; =
word-wrap: break-word;"><code class=3D"prettyprint"><div class=3D"subpretty=
print"><pre class=3D"lang-cpp prettyprint prettyprinted" style=3D"padding: =
5px; font-variant-numeric: inherit; font-stretch: inherit; line-height: inh=
erit; font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;, &qu=
ot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Ver=
a Sans Mono&quot;, &quot;Courier New&quot;, monospace, sans-serif; vertical=
-align: baseline; width: auto; max-height: 600px; overflow: auto; backgroun=
d-color: rgb(239, 240, 241); color: rgb(57, 51, 24); word-wrap: normal;"><c=
ode style=3D"font-style: inherit; font-variant: inherit; font-weight: inher=
it; font-stretch: inherit; line-height: inherit; font-family: Consolas, Men=
lo, Monaco, &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;=
DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier=
 New&quot;, monospace, sans-serif; vertical-align: baseline; white-space: i=
nherit;"><span style=3D"color: #008;" class=3D"styled-by-prettify">if</span=
><span style=3D"color: #660;" class=3D"styled-by-prettify">(</span><span st=
yle=3D"color: #000;" class=3D"styled-by-prettify">std</span><span style=3D"=
color: #660;" class=3D"styled-by-prettify">::</span><span style=3D"color: #=
000;" class=3D"styled-by-prettify">find</span><span style=3D"color: #660;" =
class=3D"styled-by-prettify">(</span><span style=3D"color: #000;" class=3D"=
styled-by-prettify">vector</span><span style=3D"color: #660;" class=3D"styl=
ed-by-prettify">.</span><span style=3D"color: #008;" class=3D"styled-by-pre=
ttify">begin</span><span style=3D"color: #660;" class=3D"styled-by-prettify=
">(),</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> vect=
or</span><span style=3D"color: #660;" class=3D"styled-by-prettify">.</span>=
<span style=3D"color: #008;" class=3D"styled-by-prettify">end</span><span s=
tyle=3D"color: #660;" class=3D"styled-by-prettify">(),</span><span style=3D=
"color: #000;" class=3D"styled-by-prettify"> item</span><span style=3D"colo=
r: #660;" class=3D"styled-by-prettify">)</span><span style=3D"color: #000;"=
 class=3D"styled-by-prettify"> </span><span style=3D"color: #660;" class=3D=
"styled-by-prettify">!=3D</span><span style=3D"color: #000;" class=3D"style=
d-by-prettify"> vector</span><span style=3D"color: #660;" class=3D"styled-b=
y-prettify">.</span><span style=3D"color: #008;" class=3D"styled-by-prettif=
y">end</span><span style=3D"color: #660;" class=3D"styled-by-prettify">()){=
</span><span style=3D"color: #000;" class=3D"styled-by-prettify"><br>=C2=A0=
 =C2=A0 </span><span style=3D"color: #800;" class=3D"styled-by-prettify">//=
 found</span><span style=3D"color: #000;" class=3D"styled-by-prettify"><br>=
</span><span style=3D"color: #660;" class=3D"styled-by-prettify">}</span><s=
pan style=3D"color: #000;" class=3D"styled-by-prettify"> </span><span style=
=3D"color: #008;" class=3D"styled-by-prettify">else</span><span style=3D"co=
lor: #000;" class=3D"styled-by-prettify"> </span><span style=3D"color: #660=
;" class=3D"styled-by-prettify">{</span><span style=3D"color: #000;" class=
=3D"styled-by-prettify"><br>=C2=A0 =C2=A0 </span><span style=3D"color: #800=
;" class=3D"styled-by-prettify">// not found</span><span style=3D"color: #0=
00;" class=3D"styled-by-prettify"><br></span><span style=3D"color: #660;" c=
lass=3D"styled-by-prettify">}</span><span style=3D"color: #000;" class=3D"s=
tyled-by-prettify"><br><br>=C2=A0</span><span style=3D"color: #800;" class=
=3D"styled-by-prettify">// maps</span><span style=3D"color: #000;" class=3D=
"styled-by-prettify"><br></span><pre class=3D"lang-cpp prettyprint prettypr=
inted" style=3D"padding: 5px; font-variant-numeric: inherit; font-stretch: =
inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, &quot;=
Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&q=
uot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monosp=
ace, sans-serif; vertical-align: baseline; width: auto; max-height: 600px; =
overflow: auto; color: rgb(57, 51, 24); word-wrap: normal;"><code style=3D"=
font-style: inherit; font-variant: inherit; font-weight: inherit; font-stre=
tch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, &=
quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans M=
ono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, m=
onospace, sans-serif; vertical-align: baseline; white-space: inherit;"><spa=
n style=3D"color: #008;" class=3D"styled-by-prettify">if</span><span style=
=3D"color: #660;" class=3D"styled-by-prettify">(</span><span style=3D"color=
: #000;" class=3D"styled-by-prettify">map</span><span style=3D"color: #660;=
" class=3D"styled-by-prettify">.</span><span style=3D"color: #000;" class=
=3D"styled-by-prettify">find</span><span style=3D"color: #660;" class=3D"st=
yled-by-prettify">(</span><span style=3D"color: #080;" class=3D"styled-by-p=
rettify">&quot;key&quot;</span><span style=3D"color: #660;" class=3D"styled=
-by-prettify">)</span><span style=3D"color: #000;" class=3D"styled-by-prett=
ify"> </span><span style=3D"color: #660;" class=3D"styled-by-prettify">!=3D=
</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> map</span=
><span style=3D"color: #660;" class=3D"styled-by-prettify">.</span><span st=
yle=3D"color: #008;" class=3D"styled-by-prettify">end</span><span style=3D"=
color: #660;" class=3D"styled-by-prettify">()){</span><span style=3D"color:=
 #000;" class=3D"styled-by-prettify"><br>=C2=A0 =C2=A0 </span><span style=
=3D"color: #800;" class=3D"styled-by-prettify">// found</span><span style=
=3D"color: #000;" class=3D"styled-by-prettify"><br></span><span style=3D"co=
lor: #660;" class=3D"styled-by-prettify">}</span><span style=3D"color: #000=
;" class=3D"styled-by-prettify"> </span><span style=3D"color: #008;" class=
=3D"styled-by-prettify">else</span><span style=3D"color: #000;" class=3D"st=
yled-by-prettify"> </span><span style=3D"color: #660;" class=3D"styled-by-p=
rettify">{</span><span style=3D"color: #000;" class=3D"styled-by-prettify">=
<br>=C2=A0 =C2=A0 </span><span style=3D"color: #800;" class=3D"styled-by-pr=
ettify">// not found</span><span style=3D"color: #000;" class=3D"styled-by-=
prettify"><br></span><span style=3D"color: #660;" class=3D"styled-by-pretti=
fy">}</span></code></pre></code></pre></div></code></div><div><br></div><di=
v><br></div>I propose &quot;contains&quot; function:</div><div><br></div><d=
iv><pre class=3D"lang-cpp prettyprint prettyprinted" style=3D"padding: 5px;=
 font-variant-numeric: inherit; font-stretch: inherit; line-height: inherit=
; font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;, &quot;L=
iberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sa=
ns Mono&quot;, &quot;Courier New&quot;, monospace, sans-serif; vertical-ali=
gn: baseline; width: auto; max-height: 600px; overflow: auto; background-co=
lor: rgb(239, 240, 241); word-wrap: normal;"><code style=3D"font-style: inh=
erit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; l=
ine-height: inherit; font-family: Consolas, Menlo, Monaco, &quot;Lucida Con=
sole&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quo=
t;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monospace, sans-=
serif; vertical-align: baseline; white-space: inherit;"><div class=3D"prett=
yprint" style=3D"background-color: rgb(250, 250, 250); border-color: rgb(18=
7, 187, 187); border-style: solid; border-width: 1px; word-wrap: break-word=
;"><code class=3D"prettyprint"><div class=3D"subprettyprint"><span style=3D=
"color: rgb(0, 0, 136);" class=3D"styled-by-prettify">if</span><span style=
=3D"color: rgb(102, 102, 0);" class=3D"styled-by-prettify">(</span><span st=
yle=3D"color: rgb(0, 0, 0);" class=3D"styled-by-prettify">std</span><span s=
tyle=3D"color: rgb(102, 102, 0);" class=3D"styled-by-prettify">::</span><sp=
an style=3D"color: rgb(0, 0, 0);" class=3D"styled-by-prettify">contains</sp=
an><span style=3D"color: rgb(102, 102, 0);" class=3D"styled-by-prettify">(<=
/span><span style=3D"color: rgb(0, 0, 0);" class=3D"styled-by-prettify">vec=
tor</span><span style=3D"color: rgb(102, 102, 0);" class=3D"styled-by-prett=
ify">.</span><span style=3D"color: rgb(0, 0, 136);" class=3D"styled-by-pret=
tify">begin</span><span style=3D"color: rgb(102, 102, 0);" class=3D"styled-=
by-prettify">(),</span><span style=3D"color: rgb(0, 0, 0);" class=3D"styled=
-by-prettify"> vector</span><span style=3D"color: rgb(102, 102, 0);" class=
=3D"styled-by-prettify">.</span><span style=3D"color: rgb(0, 0, 136);" clas=
s=3D"styled-by-prettify">end</span><span style=3D"color: rgb(102, 102, 0);"=
 class=3D"styled-by-prettify">(),</span><span style=3D"color: rgb(0, 0, 0);=
" class=3D"styled-by-prettify"> item</span><span style=3D"color: rgb(102, 1=
02, 0);" class=3D"styled-by-prettify">)){</span><span style=3D"color: rgb(0=
, 0, 0);" class=3D"styled-by-prettify"><br>=C2=A0 =C2=A0 </span><span style=
=3D"color: rgb(136, 0, 0);" class=3D"styled-by-prettify">// found</span><sp=
an style=3D"color: rgb(0, 0, 0);" class=3D"styled-by-prettify"><br></span><=
span style=3D"color: rgb(102, 102, 0);" class=3D"styled-by-prettify">}</spa=
n><span style=3D"color: rgb(0, 0, 0);" class=3D"styled-by-prettify"> </span=
><span style=3D"color: rgb(0, 0, 136);" class=3D"styled-by-prettify">else</=
span><span style=3D"color: rgb(0, 0, 0);" class=3D"styled-by-prettify"> </s=
pan><span style=3D"color: rgb(102, 102, 0);" class=3D"styled-by-prettify">{=
</span><span style=3D"color: rgb(0, 0, 0);" class=3D"styled-by-prettify"><b=
r>=C2=A0 =C2=A0 </span><span style=3D"color: rgb(136, 0, 0);" class=3D"styl=
ed-by-prettify">// not found</span><span style=3D"color: rgb(0, 0, 0);" cla=
ss=3D"styled-by-prettify"><br></span><span style=3D"color: rgb(102, 102, 0)=
;" class=3D"styled-by-prettify">}<br><br></span><span class=3D"styled-by-pr=
ettify"><div class=3D"prettyprint" style=3D"border-width: 1px; border-style=
: solid; border-color: rgb(187, 187, 187); font-family: Arial, Helvetica, s=
ans-serif; white-space: normal; word-wrap: break-word;"><code class=3D"pret=
typrint"><div class=3D"subprettyprint"><pre class=3D"lang-cpp prettyprint p=
rettyprinted" style=3D"padding: 5px; font-variant-numeric: inherit; font-st=
retch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco,=
 &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans=
 Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;,=
 monospace, sans-serif; vertical-align: baseline; width: auto; max-height: =
600px; overflow: auto; background-color: rgb(239, 240, 241); word-wrap: nor=
mal;"><code style=3D"font-style: inherit; font-variant: inherit; font-weigh=
t: inherit; font-stretch: inherit; line-height: inherit; font-family: Conso=
las, Menlo, Monaco, &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;=
, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot=
;Courier New&quot;, monospace, sans-serif; vertical-align: baseline; white-=
space: inherit;"><span class=3D"styled-by-prettify" style=3D"color: rgb(0, =
0, 0);">=C2=A0</span><span class=3D"styled-by-prettify" style=3D"color: rgb=
(136, 0, 0);">// maps</span><span class=3D"styled-by-prettify" style=3D"col=
or: rgb(0, 0, 0);"><br></span><pre class=3D"lang-cpp prettyprint prettyprin=
ted" style=3D"padding: 5px; font-variant-numeric: inherit; font-stretch: in=
herit; line-height: inherit; font-family: Consolas, Menlo, Monaco, &quot;Lu=
cida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quo=
t;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monospac=
e, sans-serif; vertical-align: baseline; width: auto; max-height: 600px; ov=
erflow: auto; word-wrap: normal;"><code style=3D"font-style: inherit; font-=
variant: inherit; font-weight: inherit; font-stretch: inherit; line-height:=
 inherit; font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;,=
 &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream=
 Vera Sans Mono&quot;, &quot;Courier New&quot;, monospace, sans-serif; vert=
ical-align: baseline; white-space: inherit;"><span class=3D"styled-by-prett=
ify" style=3D"color: rgb(0, 0, 136);">if</span><span class=3D"styled-by-pre=
ttify" style=3D"color: rgb(102, 102, 0);">(</span><span class=3D"styled-by-=
prettify" style=3D"color: rgb(0, 0, 0);">map</span><span class=3D"styled-by=
-prettify" style=3D"color: rgb(102, 102, 0);">.</span><span class=3D"styled=
-by-prettify"><font color=3D"#000000">contains</font></span><span class=3D"=
styled-by-prettify" style=3D"color: rgb(102, 102, 0);">(</span><span class=
=3D"styled-by-prettify" style=3D"color: rgb(0, 136, 0);">&quot;key&quot;</s=
pan><span class=3D"styled-by-prettify" style=3D"color: rgb(102, 102, 0);">)=
</span><span class=3D"styled-by-prettify"><font color=3D"#000000">)</font><=
/span><span class=3D"styled-by-prettify" style=3D"color: rgb(102, 102, 0);"=
>{</span><span class=3D"styled-by-prettify" style=3D"color: rgb(0, 0, 0);">=
<br>=C2=A0 =C2=A0 </span><span class=3D"styled-by-prettify" style=3D"color:=
 rgb(136, 0, 0);">// found<br></span><span class=3D"styled-by-prettify" sty=
le=3D"color: rgb(102, 102, 0);">}</span><span class=3D"styled-by-prettify" =
style=3D"color: rgb(0, 0, 0);"> </span><span class=3D"styled-by-prettify" s=
tyle=3D"color: rgb(0, 0, 136);">else</span><span class=3D"styled-by-prettif=
y" style=3D"color: rgb(0, 0, 0);"> </span><span class=3D"styled-by-prettify=
" style=3D"color: rgb(102, 102, 0);">{</span><span class=3D"styled-by-prett=
ify" style=3D"color: rgb(0, 0, 0);"><br>=C2=A0 =C2=A0 </span><span class=3D=
"styled-by-prettify" style=3D"color: rgb(136, 0, 0);">// not found</span><s=
pan class=3D"styled-by-prettify" style=3D"color: rgb(0, 0, 0);"><br></span>=
<span class=3D"styled-by-prettify" style=3D"color: rgb(102, 102, 0);">}</sp=
an></code></pre></code></pre></div></code></div><div style=3D"color: rgb(34=
, 34, 34); font-family: Arial, Helvetica, sans-serif; white-space: normal; =
background-color: rgb(255, 255, 255);"><br></div></span></div></code></div>=
</code></pre></div></div>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/b7cc5b96-2165-4b4d-a9d3-7ddec49ca626%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/b7cc5b96-2165-4b4d-a9d3-7ddec49ca626=
%40isocpp.org</a>.<br />

------=_Part_5248_693864134.1501608140973--

------=_Part_5247_132522116.1501608140972--

.
