220 37157 <beabc81c-aac8-4430-9641-4f1749ef69c5@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Nicol Bolas <jmckesson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: pseudo constness
Date: Thu, 1 Mar 2018 07:07:49 -0800 (PST)
Lines: 60
Approved: news@gmane.org
Message-ID: <beabc81c-aac8-4430-9641-4f1749ef69c5@isocpp.org>
References: <f202be10-efb5-4f1a-ab6a-18bf6ac873ee@isocpp.org>
 <CAC+0CCPGJ2J=y3x-2voHCffyXTqsPVwWyyjR99v6R-XgyU1V4w@mail.gmail.com>
 <CAC+0CCPu0dEAb9B=KmpiT8NwYd4xgSBuUWYcTRrui_Xj5K+WFA@mail.gmail.com>
 <CAC+0CCNyfhb7L2dk4N0pyu3d=T7q1L5m+nOU2yG05XXj4dH_vg@mail.gmail.com>
 <1519283315.58210.23.camel@gmail.com> <CAC+0CCNYk37F3bivpoKcLLUvEwi+sJAn2O_DF9cP7ZfjBSjHVg@mail.gmail.com>
 <CAC4OUEa2Zk9Wv4YtqbT0w-sUhMqF2mZu36QhQW7e=r-X2+asjQ@mail.gmail.com>
 <0a7e7e42-aa28-4632-8e66-56b0633755ba@isocpp.org> <ca3be727-ed85-4f73-b7f4-72c45c25c913@isocpp.org>
 <b70bf443-bc3b-41ac-9325-bf2456e555ad@isocpp.org> <d108c82b-b76b-4d04-adf8-665ea444a98e@isocpp.org>
 <27b5c95c-5b44-4089-bb14-b2d1b806093b@isocpp.org> <CAC4OUEY+wHXvW-WaiOiV09t3=hoPCdruR-VPGULNixvuvJdF7A@mail.gmail.com>
 <CAC+0CCPg3HbEktBJu+x0r2A0xw0Eg7cMUS=XSy5guSnr8RfcGA@mail.gmail.com>
 <4b81b3b8-5def-4003-b073-89af676e837a@isocpp.org>
 <d742b2d7-0e2a-49c8-ade1-7f21199367cc@isocpp.org>
 <34d1dde0-b9fd-4565-8ebe-a1b1936ab96d@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_1822_1660224876.1519916869140"
X-Trace: blaine.gmane.org 1519916756 10630 195.159.176.226 (1 Mar 2018 15:05:56 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 1 Mar 2018 15:05:56 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCEKFTV6ZUMBBTFO4DKAKGQEX24NVFA@isocpp.org Thu Mar 01 16:05:51 2018
Return-path: <std-proposals+bncBCEKFTV6ZUMBBTFO4DKAKGQEX24NVFA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ua0-f198.google.com ([209.85.217.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCEKFTV6ZUMBBTFO4DKAKGQEX24NVFA@isocpp.org>)
	id 1erPmI-0002At-HH
	for gclcip-std-proposals@m.gmane.org; Thu, 01 Mar 2018 16:05:50 +0100
Original-Received: by mail-ua0-f198.google.com with SMTP id r1sf3766276uae.6
        for <gclcip-std-proposals@m.gmane.org>; Thu, 01 Mar 2018 07:07:57 -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=wjGj+fKACnZJSqUBMTOYhOFvVBCyPI7TSsdKsrgi9F4=;
        b=Tqu3+x8xi8cNMn8QYiyrJmFO18KrnWPgEFIdW+6/vh2klOKyfeOr6MGfmarx1rDdJ3
         GplWOIm2Dv3uzdFMviwMrdWfGJ2AXWfnoInRKqcHYMce71C8cbWr/Bz2OpGU+0YYewzG
         f+bi+W5U5fHDjQpnDylEmauztaDwdYgN/b+MMSkXt4nJnDiZ+iQeFpETK9fIzdFLerxZ
         1irKh2KeqpRtuCNp0XopT6t1pOejyQhbYq94GfUKIhlM2YB9GedzUdVNrzfIFsI9ec+g
         A7oSQTdwEBGWGVHDVFivPRl7wom+xYgHw/wG8t7UlhcPGxJWojuN6x62N7P/G5bm52e3
         b4RQ==
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=wjGj+fKACnZJSqUBMTOYhOFvVBCyPI7TSsdKsrgi9F4=;
        b=Z2H7WNFIijNwO8gd98PTVjyhv+CfGOTArj2JGElIQo31fSQ0Oc658PFPcC3A9pulMl
         5CE0EByqZapXb6SmOv776HIubDuLkJjNb4Lde7QOARh/230m6mX1CSOnxzRkMRm6l1PG
         aT02eQeDFDcms6FPkjy4YVGq3SYP8jDZAEa1VYLJwBI+wuLHVaso80eNhqQhlJABBM+m
         VhsXnrpllI9Kv7iab0EK4pTrtsMf+UeWZalM0oSsv+0e5Rq07hNuP0kGQJXZNIo7jRuY
         m9ZWL2Zd0L8/O2Zx1J63HKzC2cHyljw266x0W05uRNlSeWYhk1T4xBJJsW52zWDQqCQr
         pwZA==
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=wjGj+fKACnZJSqUBMTOYhOFvVBCyPI7TSsdKsrgi9F4=;
        b=UW129QvvUS0N0CpVofZztrwuS/4Rx39kNDsVL+dSL0dPbCHANS+7Y8PaisitBne9ij
         bN93YiR5PIo6vucx86aRHFQWgpOwgWxlB3cYK+RJaIO3TOntuonzf5C3fTp+K0NnKfVH
         CMQ7FMw8lF854cI+1WnG1yBYYI7yPRraXMuplp0c2Q+lsFK8Yw5dGA0vJ61uoCpdQxkE
         tlVHTGIywQGJ7bUY+w+ShfiyBeFB3Ao1OutJ1redalzhPUkQulsWXFYMbFrriYVoU3QB
         Y5EfHNaJpr7A3A/6xx++8SrYrsrsM96goBpTfFg3LO7vKYDK4jvtPckj65nw1qLfAAsr
         1B7g==
X-Gm-Message-State: APf1xPAsPY9d4pWNUXK3m3xJOZpW3Tf492dIbepJGlv4xamKQ8ETwii3
	yRjqUwtmO6jkavbKuKKDjOi9AQ==
X-Google-Smtp-Source: AG47ELv55I5u+O3svuFDtgXTMJFFseXe4R2IBCRLs0HRH4YZrPAr1pZfc8cEwcU5v0GavdDPrSB82w==
X-Received: by 10.176.92.110 with SMTP id a46mr972100uag.23.1519916877101;
        Thu, 01 Mar 2018 07:07:57 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.31.207.196 with SMTP id f187ls3505776vkg.8.gmail; Thu, 01 Mar
 2018 07:07:49 -0800 (PST)
X-Received: by 10.31.157.18 with SMTP id g18mr230923vke.2.1519916869671;
        Thu, 01 Mar 2018 07:07:49 -0800 (PST)
In-Reply-To: <34d1dde0-b9fd-4565-8ebe-a1b1936ab96d@isocpp.org>
X-Original-Sender: jmckesson@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:37157
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/37157>

------=_Part_1822_1660224876.1519916869140
Content-Type: multipart/alternative; 
	boundary="----=_Part_1823_1356562895.1519916869141"

------=_Part_1823_1356562895.1519916869141
Content-Type: text/plain; charset="UTF-8"

On Thursday, March 1, 2018 at 2:15:49 AM UTC-5, jsaintm...@gmail.com wrote:
>
> In this function, I am using insert instead of find, because it allows 
> hint. Insert is not const, but the element inserted is be erased
>

Yes, I see that, but I don't understand *why you want that*. You haven't 
improved the performance of this operation. So what's the point?

I've yet to see an example of this "pseudoconst" idea that shows why 
someone would want to use it.

-- 
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/beabc81c-aac8-4430-9641-4f1749ef69c5%40isocpp.org.

------=_Part_1823_1356562895.1519916869141
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Thursday, March 1, 2018 at 2:15:49 AM UTC-5, jsaintm...=
@gmail.com wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margi=
n-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"l=
tr">In this function, I am using insert instead of find, because it allows =
hint. Insert is not const, but the element inserted is be erased<br></div><=
/blockquote><div><br>Yes, I see that, but I don&#39;t understand <i>why you=
 want that</i>. You haven&#39;t improved the performance of this operation.=
 So what&#39;s the point?<br><br>I&#39;ve yet to see an example of this &qu=
ot;pseudoconst&quot; idea that shows why someone would want to use it.</div=
><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/beabc81c-aac8-4430-9641-4f1749ef69c5%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/beabc81c-aac8-4430-9641-4f1749ef69c5=
%40isocpp.org</a>.<br />

------=_Part_1823_1356562895.1519916869141--

------=_Part_1822_1660224876.1519916869140--

.
