220 37158 <e08de6c3-e7c2-46a0-a788-24986d9c56b5@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: jsaintmartin356@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: pseudo constness
Date: Thu, 1 Mar 2018 09:35:06 -0800 (PST)
Lines: 76
Approved: news@gmane.org
Message-ID: <e08de6c3-e7c2-46a0-a788-24986d9c56b5@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>
 <beabc81c-aac8-4430-9641-4f1749ef69c5@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_2315_532722258.1519925706755"
X-Trace: blaine.gmane.org 1519925588 27464 195.159.176.226 (1 Mar 2018 17:33:08 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 1 Mar 2018 17:33:08 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBD2KVY7D7YJBBS7T4DKAKGQEGEPCA6Q@isocpp.org Thu Mar 01 18:33:04 2018
Return-path: <std-proposals+bncBD2KVY7D7YJBBS7T4DKAKGQEGEPCA6Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vk0-f69.google.com ([209.85.213.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBD2KVY7D7YJBBS7T4DKAKGQEGEPCA6Q@isocpp.org>)
	id 1erS4k-0006gw-El
	for gclcip-std-proposals@m.gmane.org; Thu, 01 Mar 2018 18:33:02 +0100
Original-Received: by mail-vk0-f69.google.com with SMTP id p197sf3638341vkf.22
        for <gclcip-std-proposals@m.gmane.org>; Thu, 01 Mar 2018 09:35:09 -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=az51zJs6TecN6+4rIk/+jfI6Qxsr6Jt1ItuVGeGbx7g=;
        b=y8RfcORq9h+nq1F6Lt5BUKf3EU4btjWnlnGOC5D37p3FKrfBZQFNAI1+389YxL6iEN
         AAxDZ46Z5sxyxsuYwJXzDx0PGXWbQTnUabvd2tmdcqbAhbbao137HnEOJCAKgcosgOmt
         0lDgsWLr24pJIBdLhVJWxcV5QTLjrKyHtv4rB2H33PwLS8EpUesLeVjpZpIIc7RNmqxt
         7BPfJg/BmH48hV94Y9OUHV/TkHkmSTD0unjUGlt7T6zTiAVIYzTFaY/oEI3ETO7sR9tg
         m50Ya+pVSvIaiQTpjYEm8iWHDgP0v9ZBbCrkufkoMDhrRZaCbZaNS3R/vSswVpp2pkxr
         6dNg==
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=az51zJs6TecN6+4rIk/+jfI6Qxsr6Jt1ItuVGeGbx7g=;
        b=GFrB8EBRYYbTljTqqMNF3sKFYlouZiIB+w8svnXQJKG+rYkMaXUZwX1noJ3UIIUyrx
         kWxRqKXx2NAurxXfLc8VGN8eKoIOKqQw0ISIf+41eTAIOxzxRr7P3IcmEcoHtBlFdrNk
         CQpZQztQhMq8FVmm4XRuD4elUea/gDPAsvXg3rnxdlrN7uphtvHVfgUllzx2LQ72XzH6
         o7/bWUm/NxmwZWjWf1NVle/N95Cbkkew6ONTkS7aAR7cAouepXiULd86rNzJ9aud9htr
         /cT0uDEJwhJtVL8WS3PpdXix9be7IBq3URAi5uqciuPFiogch0Js+GvLm10p0pDcxa6a
         DSzQ==
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=az51zJs6TecN6+4rIk/+jfI6Qxsr6Jt1ItuVGeGbx7g=;
        b=t5nSjRzsbzWAG1KkVumALIJe1Px52mWtGHToEE/vAajVBugzl41TNd3n01TgQ3oYs3
         c/etx0LmkdKw3qr7hy0n6in9W/w0NDgcFknAYZuFhjVBFFcfXI1PColp3gPOxQz7IUll
         yxfQNpmoZfXphED6a9f43Kzs2DYN9I9VD3jp4sHSPQ8KRHpR2LDI0k8xAt0hphg0c/Fa
         1wMb1t8XTm4zTAZy3dg26tXFWwWx+rsL7SGsTrd2eGAfGEqCi0leb+1M8H4m8ODFX3Yb
         LDjhZauERHpGKyCJapeXVoR6Uh+X84gxhGse3KdvM9yNlVb+a71edDHek+RE6YoyUQ8E
         LRHw==
X-Gm-Message-State: APf1xPAwh/Hia6XqEq8flWu9do1XXcnCS/gIRlXx2ALo5p9/1QYqOQCO
	2W8tS499dZKw782mFKwb6kYTDQ==
X-Google-Smtp-Source: AG47ELvsBcDH1EE4+h5hDc0Pyir+C0+jAxyz/jaY67vesfjb3j/VdZet1zEZbWhqIff0qzDomhw6/g==
X-Received: by 10.31.3.15 with SMTP id 15mr1125758vkd.20.1519925708681;
        Thu, 01 Mar 2018 09:35:08 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.31.16.66 with SMTP id g63ls3886025vki.4.gmail; Thu, 01 Mar
 2018 09:35:07 -0800 (PST)
X-Received: by 10.31.178.81 with SMTP id b78mr275572vkf.14.1519925707347;
        Thu, 01 Mar 2018 09:35:07 -0800 (PST)
In-Reply-To: <beabc81c-aac8-4430-9641-4f1749ef69c5@isocpp.org>
X-Original-Sender: jsaintmartin356@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:37158
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/37158>

------=_Part_2315_532722258.1519925706755
Content-Type: multipart/alternative; 
	boundary="----=_Part_2316_1120157230.1519925706755"

------=_Part_2316_1120157230.1519925706755
Content-Type: text/plain; charset="UTF-8"

I want this because for I must choose between different methods, the one 
giving the best result. I need to try all methods without changing the 
object (with a guarantee of the compiler : const calls M, const or pseudo 
const calls, reverse M calls), and then choose the method

On Thursday, March 1, 2018 at 4:07:49 PM UTC+1, Nicol Bolas wrote:
>
> 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/e08de6c3-e7c2-46a0-a788-24986d9c56b5%40isocpp.org.

------=_Part_2316_1120157230.1519925706755
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I want this because for I must choose between different me=
thods, the one giving the best result. I need to try all methods without ch=
anging the object (with a guarantee of the compiler : const calls M, const =
or pseudo const calls, reverse M calls), and then choose the method<br><br>=
On Thursday, March 1, 2018 at 4:07:49 PM UTC+1, Nicol Bolas wrote:<blockquo=
te class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left:=
 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr">On Thursday, March 1, =
2018 at 2:15:49 AM UTC-5, <a>jsaintm...@gmail.com</a> wrote:<blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc=
 solid;padding-left:1ex"><div dir=3D"ltr">In this function, I am using inse=
rt instead of find, because it allows hint. Insert is not const, but the el=
ement 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 impro=
ved the performance of this operation. So what&#39;s the point?<br><br>I&#3=
9;ve yet to see an example of this &quot;pseudoconst&quot; idea that shows =
why someone would want to use it.</div><br></div></blockquote></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/e08de6c3-e7c2-46a0-a788-24986d9c56b5%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/e08de6c3-e7c2-46a0-a788-24986d9c56b5=
%40isocpp.org</a>.<br />

------=_Part_2316_1120157230.1519925706755--

------=_Part_2315_532722258.1519925706755--

.
