220 36978 <f6d6791c-9b48-40ce-8f95-c4c5ae2babe8@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: frederik.hertzum@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: const std::map operator []
Date: Tue, 20 Feb 2018 05:17:12 -0800 (PST)
Lines: 44
Approved: news@gmane.org
Message-ID: <f6d6791c-9b48-40ce-8f95-c4c5ae2babe8@isocpp.org>
References: <c510e551-256b-4127-8606-2011ab998e3d@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_14840_1467762360.1519132632845"
X-Trace: blaine.gmane.org 1519132513 15570 195.159.176.226 (20 Feb 2018 13:15:13 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 20 Feb 2018 13:15:13 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCZJN6FD4AKRBWN7WDKAKGQEQ2KJBOQ@isocpp.org Tue Feb 20 14:15:09 2018
Return-path: <std-proposals+bncBCZJN6FD4AKRBWN7WDKAKGQEQ2KJBOQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ua0-f200.google.com ([209.85.217.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCZJN6FD4AKRBWN7WDKAKGQEQ2KJBOQ@isocpp.org>)
	id 1eo7lF-0003m3-8z
	for gclcip-std-proposals@m.gmane.org; Tue, 20 Feb 2018 14:15:09 +0100
Original-Received: by mail-ua0-f200.google.com with SMTP id z11sf8726480uaz.0
        for <gclcip-std-proposals@m.gmane.org>; Tue, 20 Feb 2018 05:17:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=s8RWi6Qe42Jt+CCYrfh+jVPGppQrpgMEKJg+Jpxh8Ug=;
        b=Wqqzq4XC2GxOZ0/G1rKpbRTypamJ+k/s3tYTwvz28vz08ibLtfN5vpWFLzY8hiB0RY
         MUP5xVmYDjAftQavQVEh4OsFe9G6rBfaVJ7//j42gL5ofK+OI6V95FVY3DvZyksYy/76
         /ISPwC2ZYvQSFfLIU/YAby2GI+GQXmQuPSHvCohwh8a6jyhXOvU3vssKYhjeOVlwSoWe
         MdhXnydsr9cyDBI6xMjsobS8LY2pHgJBBYe6aW4J5n72gcKb75ykqLWJXsRgeeyxo/Ll
         zznVomUAh4t9xcLNK2oHWU338zGJpvABcdB+eoYN0DfDfdKZ6f0w8FnHzBjEt4MFvVyB
         PVkA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=s8RWi6Qe42Jt+CCYrfh+jVPGppQrpgMEKJg+Jpxh8Ug=;
        b=M3nbfw12qcvVxNrA4YFSDrIhjrFFUbYkJuKrbwL8888bhpRjHl57du18fyqqEQukoX
         hcJ87kcgpmgEt/cAInJBS94RESlrwUnFWFUhcCR1bsGYDY0uhh6Mlc5GCNuLH5PE8f5c
         bgzIsOGQk/ha8debBtkTxu+p32MXArxvylk1xRoZZxkYU+hCavpVFicBAmfkOMiW1Zlf
         QUqDimgt3f6EbRFWZf3zcuMM127C07PrbAd2jRh/d1YqeCXU+i7vTq+IAeDyWxY0oxA0
         PLVj1OqOz5WMzgMMZ/5RN4yktFZ5dZPpRZ6yuOaxSzOP6p/x9lFDLuPwHMJcEC8D/nxP
         pWpg==
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:in-reply-to:references
         :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=s8RWi6Qe42Jt+CCYrfh+jVPGppQrpgMEKJg+Jpxh8Ug=;
        b=bAtbDLpR5TTKk0hhyIGpskESX6zZprGDON7ErErzBLbJ+R0zN6BSFOvZ9ujuGpCVsQ
         D9F5H51cPCWrMsaC7Iz6z17cNB5xU42GOO7Z5ESVeX5Q1ZbanLVS9TGmolNUQhO0FqDk
         T/Zl9VYATQPtt/4nwMQw2vS8cG/Qao5zBBaAk4jI9w3SFO/5UhOffOD/dDGgOKUSyxOT
         g/OzLv3vfifJKRv2Rx40jPrvgFp/VqvyJ+fnYj1KK030B9QuTvkFtDU7Az5eT3Q+zvtX
         x/Jd9w/wsKmZmKTIZzpq4fkUePWCB7CDMqVQ3snnDk3hJACyKWX4HdFDriEp+essvXWJ
         yr+g==
X-Gm-Message-State: APf1xPD8/lNysl2qN2zwHcaQFOAHHIU+/GBWaleMA8YFGyYiPBy5Q1ii
	FV7+bbKLReDo4uc0JMEkru1Few==
X-Google-Smtp-Source: AH8x226E0hXFpQgtLUA3Bmx6SUrOes4aQGQNx+evY0/IeoJuLBVTHogfQOLfGY6Bi2K9ICAXWI+m2g==
X-Received: by 10.31.85.196 with SMTP id j187mr12004112vkb.25.1519132635456;
        Tue, 20 Feb 2018 05:17:15 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.31.96.8 with SMTP id u8ls441622vkb.0.gmail; Tue, 20 Feb 2018
 05:17:13 -0800 (PST)
X-Received: by 10.31.211.130 with SMTP id k124mr112817vkg.10.1519132633311;
        Tue, 20 Feb 2018 05:17:13 -0800 (PST)
In-Reply-To: <c510e551-256b-4127-8606-2011ab998e3d@isocpp.org>
X-Original-Sender: frederik.hertzum@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: 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:36978
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/36978>

------=_Part_14840_1467762360.1519132632845
Content-Type: multipart/alternative; 
	boundary="----=_Part_14841_1384207868.1519132632845"

------=_Part_14841_1384207868.1519132632845
Content-Type: text/plain; charset="UTF-8"

I've considered doing similar things a few times. I usually opt for 
throwing an exception if the key doesn't match an item however.

-- 
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/f6d6791c-9b48-40ce-8f95-c4c5ae2babe8%40isocpp.org.

------=_Part_14841_1384207868.1519132632845
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I&#39;ve considered doing similar things a few times. I us=
ually opt for throwing an exception if the key doesn&#39;t match an item ho=
wever.<br></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/f6d6791c-9b48-40ce-8f95-c4c5ae2babe8%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/f6d6791c-9b48-40ce-8f95-c4c5ae2babe8=
%40isocpp.org</a>.<br />

------=_Part_14841_1384207868.1519132632845--

------=_Part_14840_1467762360.1519132632845--

.
