220 34917 <5873010.Yt6ogCpMIS@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Thoughts on more methods towards containers in
 the future
Date: Sat, 14 Oct 2017 09:27:52 -0700
Lines: 27
Approved: news@gmane.org
Message-ID: <5873010.Yt6ogCpMIS@tjmaciei-mobl1>
References: <973f04da-1354-44f4-9d1f-23f04596b8dc@isocpp.org> <405f3ea9-d886-4c3f-9543-a276f8214974@isocpp.org> <02fc9853-e388-4eb3-8db3-de4e0a689056@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1507998483 2668 195.159.176.226 (14 Oct 2017 16:28:03 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sat, 14 Oct 2017 16:28:03 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBEHWRDHQKGQE2IPZNYA@isocpp.org Sat Oct 14 18:27:57 2017
Return-path: <std-proposals+bncBCB4TK757YBRBEHWRDHQKGQE2IPZNYA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wr0-f197.google.com ([209.85.128.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBEHWRDHQKGQE2IPZNYA@isocpp.org>)
	id 1e3PI2-00087t-70
	for gclcip-std-proposals@m.gmane.org; Sat, 14 Oct 2017 18:27:54 +0200
Original-Received: by mail-wr0-f197.google.com with SMTP id k7sf2361917wre.22
        for <gclcip-std-proposals@m.gmane.org>; Sat, 14 Oct 2017 09:28:02 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1507998481; cv=pass;
        d=google.com; s=arc-20160816;
        b=CyZThTeN/SwH34wE+0VuFzPJh+bKBVX6aAY6AIVcf9QONyEf+Tt76iYZ3NByBX24cJ
         d4eh1D/5EAMz9Bnaz607KyzuY2pSjYEye2CCVwSA5dLTwDtnt3qEIQWT9ub5jozKVwmZ
         TfF797zUyVD9AK337ZmFuyHWw2SMAqfumwhk7UFvqoWqtv9r+TKtLTctT/X/lh39fAd0
         Mfb0K45RqRWFk1w4hkdpSr7Sai2tUgVRqeVaR1gErJ52oRMeXsEXvbmoZwXL5IiooZ/d
         UyaEv99GHTStHqi+SQB7sLnUS6vPIRewJeuAgrGM3wXGgyB6u1nEe/zi7OoNJLpCxuPf
         KoTw==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:mime-version:references
         :in-reply-to:message-id:date:subject:to:from
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=efycafnKJVe6L8YRZ+tI0/JJDi7DeQCdICCqYUZK9xw=;
        b=rn7Z8zE7GXI9aTlrfQiFMLxxUbSm5Aj3JxS3kQ/GbSsWG80baqn9fGl4jm9ghfxKAn
         e2Bisq2P/XCNITeHzmRMQ/8Ur8eOhP1XznAw/a6e8yMSXoUm64QXW9jAUbHOY9JPsStc
         t7xTHldFx7t8JJumXc0k+ulVh7LZ7OgmnJbIB7vqipnDR20ZBsUe3q7aCLYm5M2ICsMz
         StwQLkX+q1GRUerqn9GSDTO9y0/N/bRC0BilqSIFUFeTzsOHD2RSdfiC2nJ81F7jDCWR
         4f66uk6TVf7c9g47vlIgtP+qEKS/azpXqYWoUnzHgXinS0yKOH57+pCItnILXosyAk/L
         fU0A==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) smtp.mailfrom=thiago@macieira.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:in-reply-to:references:mime-version
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=efycafnKJVe6L8YRZ+tI0/JJDi7DeQCdICCqYUZK9xw=;
        b=gz2Dj7l4qbyVaRxln5vHztYX9aRpb/9UTl0r0j+/SrPyWZm5mkHBzz7xQGuo5vSTqT
         MAJX5toPrjH68SRFskpZTYBLnukYyK+7J8N4B+mAG4hLjw38nm2dO8cHu/q2csTMT2vl
         h8/r9jGCXjb9tRIhV0kbDdxvWh7lNhC9aV+xuKdJoYEbYqazqhe/wIJO4j44e+V09IJ5
         NkyKpjrAhj8jhabE69VyEiD0KWeu6dhoAt+721j/aU5bUK+S+JlvLkozfH3avi5gIZ+j
         7a/cq6G2RRHkrQRM41QcqFnpveA4m7kH5rqfp9v8+UpBowxacXC+HCTop1tpmlaHsSK+
         l1Ag==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
         :references:mime-version:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=efycafnKJVe6L8YRZ+tI0/JJDi7DeQCdICCqYUZK9xw=;
        b=KitQPuVBhdPhLBProBD9guHNyjssgYX4uVtl4IaGISaIyoqe8abNAD4ceYWKzNTwfr
         mV6HGw6Q6aLLnQgci2pDnimK9rd/Hkdjg3YqTbYshy1LFaTMKIN7BnDdrdyOnsncAi7X
         juwJ3p1225EEVBMRNbnXxSsCds6RgQgpfOLS0vKAIT4Fs9eDAPnut8bb41PyJRhoiNbH
         tJHM51KvnTz2icybSZ27h6nq4kh1+HVQ4ZkoDfnEEPgSbCaZ3vuZOJhMqejrhKYqfgZv
         oY14i+N005Y34v2epr75wMjlG6w0xXYjkeFZFSmwi+PnYgLItGT9LkGtIn1XMpfNFvl8
         oEkw==
X-Gm-Message-State: AMCzsaW9CxsuZmysgXWLXcYmezmmWczKpG6FFyWgxIUgzX50zQFjwpk7
	pz9PVGDUhY7s86omzpo91x0fIg==
X-Google-Smtp-Source: ABhQp+Rys1++y5ijRjIctV9Bm16oFOGc33VQHhkLxP5KWXYrtBhZeAYzCcL768GRKfR32ZVXTDiXGA==
X-Received: by 10.28.184.78 with SMTP id i75mr540371wmf.30.1507998481865;
        Sat, 14 Oct 2017 09:28:01 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.223.161.20 with SMTP id o20ls2270741wro.9.gmail; Sat, 14 Oct
 2017 09:28:00 -0700 (PDT)
X-Received: by 10.28.29.205 with SMTP id d196mr3495521wmd.106.1507998480659;
        Sat, 14 Oct 2017 09:28:00 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1507998480; cv=none;
        d=google.com; s=arc-20160816;
        b=cV4Vf9HClQkHzYWj9n1mZptkNRwsPvVJmaOJAJ4gLNa01HfHB9DESxsPK/aujiWTjN
         iWCbsBE32LwKRvoUqSUsor8r7pldD+DXo7eMmrKRin7rbPMfUMQLHAG/brj0me4KluiA
         CJ784eotBu3ZlEiRCJuIBVzSQwsg5X8c7ChQFQ3lEfQuTXru7ytb65HSpRGilW/kyUSS
         TGFwMK8Lpn6sw+TPl15lSecXMYdRYwMlk9OYl3GDtuRGkz/IXl8DcnD0uxUl9Q5OKZBZ
         DyWAOUG2XgUxQikDcjBBUu9j9cnXjVG03ZvD5lcdUEt3ohBEpwYb5U6Ixl+C1OcEU5j8
         ln8A==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:to:from:arc-authentication-results;
        bh=jXg/uPKKXqnSdqXYxHZ6QcXEx5tHxVqNFoh+1WnZwDk=;
        b=n7WQz1/UOaDiCwaDJNBjnvfOvTNpJR0L3EfZ6tk1J0TvuTr1uQW3h+sqV+J0ZGjQ6s
         fQq236epCu6dv4U0lzWv8h6bpl6tLDQUT5d/30dCsT64KXTGiAMI9fZwIC7G9WHWiRW2
         rqz0+69ULi738eFlLTTY8jZ96V+BrpGeTCrDPIppVv9HN/bRZJpvuO5hEHT/FM+31GN5
         oidTuYwMWl0XiFEQGF4JnxE/4Z9CltXo1Py2by4EQfsmghKLK6cK4RYXlzbfeb3FgKEU
         scw2d8Ag2oO9G/0uKNm2OCl4IbrQb+m4DYTb23q5T5SD5QOb+9Vn5oBCfccmUX020urI
         PrLQ==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id q188si2678213wmd.110.2017.10.14.09.28.00
        for <std-proposals@isocpp.org>;
        Sat, 14 Oct 2017 09:28:00 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl1.localnet (unknown [IPv6:2601:1c0:4501:5f9f:4d0f:6073:7925:fde4])
	by gondolin.macieira.info (Postfix) with ESMTPSA id B56F911B3DC
	for <std-proposals@isocpp.org>; Sat, 14 Oct 2017 09:27:59 -0700 (PDT)
In-Reply-To: <02fc9853-e388-4eb3-8db3-de4e0a689056@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mailfrom=thiago@macieira.org
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:34917
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/34917>

On Saturday, 14 October 2017 08:44:42 PDT euloanty@live.com wrote:
> vector<int> v;
> v.reserve(100000);
> //emplace_back for 100001 times. I cant find mistakes.

Actually, the correct comment here would have been, "I can check .size() later 
and see I reserved too little. I can 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.

And here it is ".size() is still the same, so I don't know how many 
emplace_back I've made. There may have been a silent buffer overrun that 
didn't trigger any visible effects while testing.  I can't find mistakes".

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

-- 
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/5873010.Yt6ogCpMIS%40tjmaciei-mobl1.

.
