220 34921 <73c98deb-3054-4652-8fca-97f0939ed6d7@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: euloanty@live.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Thoughts on more methods towards containers in
 the future
Date: Sat, 14 Oct 2017 10:04:32 -0700 (PDT)
Lines: 94
Approved: news@gmane.org
Message-ID: <73c98deb-3054-4652-8fca-97f0939ed6d7@isocpp.org>
References: <0cc942cf-a217-4175-98b0-b466ac224dc7@isocpp.org>
 <b50be367-9a0c-4d62-a392-d2b4471d7403@isocpp.org>
 <e5065ef4-4802-4241-8357-cfb93ba25bae@isocpp.org>
 <e6b61d03-a64e-48fd-81b5-5a5f937f6d1a@isocpp.org>
 <7e04a500-ba3a-432a-a844-7d4def1fb739@isocpp.org>
 <CADtNNhgCeGu71ZU864hhiyvgNp3eFvh79HFGiVBJdaeSXDVQJA@mail.gmail.com>
 <5c1bc3ef-c3a2-4406-8a7a-f82e12155386@isocpp.org>
 <69a588d5-de2a-4be2-8add-9685d0b9a230@isocpp.org>
 <405f3ea9-d886-4c3f-9543-a276f8214974@isocpp.org>
 <02fc9853-e388-4eb3-8db3-de4e0a689056@isocpp.org>
 <20171014160909.GB1546@fukushima.lysator.liu.se>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_14207_2112438522.1508000672902"
X-Trace: blaine.gmane.org 1508000682 10890 195.159.176.226 (14 Oct 2017 17:04:42 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sat, 14 Oct 2017 17:04:42 +0000 (UTC)
Cc: euloanty@live.com
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDPYX6PYRQNBBIMHRHHQKGQEMMQYUVI@isocpp.org Sat Oct 14 19:04:36 2017
Return-path: <std-proposals+bncBDPYX6PYRQNBBIMHRHHQKGQEMMQYUVI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ua0-f197.google.com ([209.85.217.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDPYX6PYRQNBBIMHRHHQKGQEMMQYUVI@isocpp.org>)
	id 1e3PrO-000104-WC
	for gclcip-std-proposals@m.gmane.org; Sat, 14 Oct 2017 19:04:27 +0200
Original-Received: by mail-ua0-f197.google.com with SMTP id 10sf5311817uav.16
        for <gclcip-std-proposals@m.gmane.org>; Sat, 14 Oct 2017 10:04:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:cc: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=b2MjKtdf/IittuwUHgI+yGPro5Q8apx7mPy9Dqe13gw=;
        b=XkCWCTEpSX6EPwYWZ0cd3A2uBBPaIVFck4EA7aTIBGmEDuGVn+PjlYjCbVy0CrDdiT
         fgiM6mQ+9MYocYBLh0GYTiOfV3m8CBckaPM7BJChoIuwqu1JlwgGV7vNTKRd8s8imeDW
         zog5xlqTwURYLuyc/pR8qoRV2z800twwGINQ8lC63EbFlHjNQDaJClkaEWevlsutG38K
         zwD2Qss6VEU3cpTXafOHNT+KrvZ/bHxSSRrRmvXIQRs841e0NnOmyVMR5ye1T6DWuZne
         qf6ba0/QVcI1gLYkOBWcOEnUHsjSGx2qiizQ391q2NAn8ZehNpMmWWZnnV+uSfNOJvxk
         qdXg==
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:cc: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=b2MjKtdf/IittuwUHgI+yGPro5Q8apx7mPy9Dqe13gw=;
        b=k/V/XkWVyyLkhy6IuEhWpD4pY/DJjaYPmIuAsDjqTzPyfckhBAEkc2GRZqVcfaPgLi
         ubTzV+G59att8YDJGTfTgK4+pne1BTjtEW3tnbkwhd6Kcrwih0PpPbXg4PdzuZ9/unQr
         FL45RX3HvCXxnf790jubp7wGu/KR1ceamtYK+5JzYM1++YI+cv7cILJKBOf+gLnl9/Kt
         9/qvlqiUw0bG6VkrrYt1CHq8X8lSBa+hOSet3EEDp9Y8Khd5VvnPhLRrTjQsvdKAtMbq
         ZP+dfQqjK6C7mOGc0VYTeB95y20PxpiPml/zZOShCri9lfM314oQbGrIyyKHhDW7KZ4H
         88eQ==
X-Gm-Message-State: AMCzsaVIROC+cn/FQ6C7PvnVC8nk0lGm3j9yhXhKrMs2ad6Z7l/UInq6
	XSVO5KXgai5EAVHt1UVj0nTtUA==
X-Google-Smtp-Source: AOwi7QDUkwuqVDIyka75IS5pbD4ob06ity9UUVoQaMPdI9aS3CImdE7oqEnRKgMCcq8fYJ8z8tKEgQ==
X-Received: by 10.31.181.15 with SMTP id e15mr2570819vkf.67.1508000674346;
        Sat, 14 Oct 2017 10:04:34 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.176.86.23 with SMTP id y23ls2294513uaa.7.gmail; Sat, 14 Oct
 2017 10:04:33 -0700 (PDT)
X-Received: by 10.31.7.137 with SMTP id 131mr315809vkh.5.1508000673394;
        Sat, 14 Oct 2017 10:04:33 -0700 (PDT)
In-Reply-To: <20171014160909.GB1546@fukushima.lysator.liu.se>
X-Original-Sender: euloanty@live.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:34921
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/34921>

------=_Part_14207_2112438522.1508000672902
Content-Type: multipart/alternative; 
	boundary="----=_Part_14208_1591891492.1508000672902"

------=_Part_14208_1591891492.1508000672902
Content-Type: text/plain; charset="UTF-8"

It is undefined behavior. So I can get my errors from it.

On Saturday, October 14, 2017 at 12:09:14 PM UTC-4, Magnus Fromreide wrote:
>
> On Sat, Oct 14, 2017 at 08:44:42AM -0700, eulo...@live.com <javascript:> 
> wrote: 
> > For example. I want to test whether I reserve the exactly correct 
> capacity 
> > for vector. 
> > 
> > 
> > vector<int> v; 
> > v.reserve(100000); 
> > //emplace_back for 100001 times. I cant find mistakes. 
> > 
> > 
> > vector<int> v; 
> > v.reserve(100000); 
> > //non check emplace_back for 100001 times 
> > This program will collapse. And I can know I've made mistake here. 
>
> No, that program have undefined behaviour so you do not know what will 
> happen. 
>
> /MF 
>

-- 
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/73c98deb-3054-4652-8fca-97f0939ed6d7%40isocpp.org.

------=_Part_14208_1591891492.1508000672902
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">It is undefined behavior. So I can get my errors from it.<=
br><br>On Saturday, October 14, 2017 at 12:09:14 PM UTC-4, Magnus Fromreide=
 wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.=
8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On Sat, Oct 14, 2017 at=
 08:44:42AM -0700, <a onmousedown=3D"this.href=3D&#39;javascript:&#39;;retu=
rn true;" onclick=3D"this.href=3D&#39;javascript:&#39;;return true;" href=
=3D"javascript:" target=3D"_blank" rel=3D"nofollow" gdf-obfuscated-mailto=
=3D"BJctWVYVAQAJ">eulo...@live.com</a> wrote:
<br>&gt; For example. I want to test whether I reserve the exactly correct =
capacity=20
<br>&gt; for vector.
<br>&gt;=20
<br>&gt;=20
<br>&gt; vector&lt;int&gt; v;
<br>&gt; v.reserve(100000);
<br>&gt; //emplace_back for 100001 times. I cant find mistakes.
<br>&gt;=20
<br>&gt;=20
<br>&gt; vector&lt;int&gt; v;
<br>&gt; v.reserve(100000);
<br>&gt; //non check emplace_back for 100001 times
<br>&gt; This program will collapse. And I can know I&#39;ve made mistake h=
ere.
<br>
<br>No, that program have undefined behaviour so you do not know what will =
happen.
<br>
<br>/MF
<br></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/73c98deb-3054-4652-8fca-97f0939ed6d7%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/73c98deb-3054-4652-8fca-97f0939ed6d7=
%40isocpp.org</a>.<br />

------=_Part_14208_1591891492.1508000672902--

------=_Part_14207_2112438522.1508000672902--

.
