Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #41259

Re: do shared_ptrs to resized vector remain valid?

Newsgroups comp.lang.c++
Date 2016-02-26 09:05 -0800
References <5735d6ff-0572-41ff-ac88-8b1bcd52cef6@googlegroups.com> <fOOdnXanTNJK503LnZ2dnUU78W-dnZ2d@giganews.com> <naq040$f0$1@news.xmission.com>
Message-ID <ab5eef44-442f-4208-8fc2-eaa450c9db0c@googlegroups.com> (permalink)
Subject Re: do shared_ptrs to resized vector remain valid?
From jomarbueyes@hotmail.com

Show all headers | View raw


On Friday, February 26, 2016 at 11:56:50 AM UTC-5, Richard wrote:
> [Please do not mail me a copy of your followup]
> 
> Paavo Helde <myfirstname at osa.pri.ee> spake the secret code
> <fOOdnXanTNJK503LnZ2dnUU78W-dnZ2d at giganews.com> thusly:
> 
> >With the elements in the resizable buffer the things are different, 
> >their location can change during operations like resizing, [...]
> 
> I believe the standard guarantees that they remain in the same
> location if you resize the vector smaller.
> -- 
> "The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
>      The Computer Graphics Museum <http://computergraphicsmuseum.org>
>          The Terminals Wiki <http://terminals.classiccmp.org>
>   Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>

Hi Richard, 

Thank you very much for your response. My concern is mostly with growing a vector.

Thank you again, 

Jomar

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

do shared_ptrs to resized vector remain valid? jomarbueyes@hotmail.com - 2016-02-26 07:41 -0800
  Re: do shared_ptrs to resized vector remain valid? Paavo Helde <myfirstname@osa.pri.ee> - 2016-02-26 18:18 +0200
    Re: do shared_ptrs to resized vector remain valid? legalize+jeeves@mail.xmission.com (Richard) - 2016-02-26 16:56 +0000
      Re: do shared_ptrs to resized vector remain valid? jomarbueyes@hotmail.com - 2016-02-26 09:05 -0800
    Re: do shared_ptrs to resized vector remain valid? jomarbueyes@hotmail.com - 2016-02-26 09:00 -0800
  Re: do shared_ptrs to resized vector remain valid? Juha Nieminen <nospam@thanks.invalid> - 2016-02-26 18:08 +0000

csiph-web