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


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

Re: What is this header good for ?

From Bonita Montero <Bonita.Montero@gmail.com>
Newsgroups comp.lang.c++
Subject Re: What is this header good for ?
Date 2022-11-04 20:12 +0100
Organization A noiseless patient Spider
Message-ID <tk3o67$1v8om$1@dont-email.me> (permalink)
References (2 earlier) <tju7mb$1l95$1@gioia.aioe.org> <tjuabe$17gkq$1@dont-email.me> <33a066b2-bdab-4423-97dd-36c2d96e431bn@googlegroups.com> <tk0nj8$1g58o$1@dont-email.me> <fc035527-6558-4ca4-ade9-e379a8bc065dn@googlegroups.com>

Show all headers | View raw


Am 03.11.2022 um 17:06 schrieb Öö Tiib:

> What? The resize() is required to copy construct new elements from
> "value" parameter, not default construct new elements. ...

The appended elements are initialized by default if you don't pass
a default-value given to the parametrized constructor. So you can
gigabytes of appended elements that aren't default-initialized and
when you have an operating system that overcommits the appended
memory pages aren't even assigned to physical pages until you
write-touch them.

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


Thread

What is this header good for ? Bonita Montero <Bonita.Montero@gmail.com> - 2022-11-01 15:32 +0100
  Re: What is this header good for ? "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2022-11-01 20:23 +0100
    Re: What is this header good for ? Bonita Montero <Bonita.Montero@gmail.com> - 2022-11-02 03:59 +0100
      Re: What is this header good for ? Tony Oliver <guinness.tony@gmail.com> - 2022-11-02 04:45 -0700
        Re: What is this header good for ? Bonita Montero <Bonita.Montero@gmail.com> - 2022-11-02 14:33 +0100
  Re: What is this header good for ? Bonita Montero <Bonita.Montero@gmail.com> - 2022-11-02 04:02 +0100
    Re: What is this header good for ? Muttley@dastardlyhq.com - 2022-11-02 16:59 +0000
      Re: What is this header good for ? Bonita Montero <Bonita.Montero@gmail.com> - 2022-11-02 18:45 +0100
        Re: What is this header good for ? Öö Tiib <ootiib@hot.ee> - 2022-11-03 08:22 -0700
          Re: What is this header good for ? Bonita Montero <Bonita.Montero@gmail.com> - 2022-11-03 16:43 +0100
            Re: What is this header good for ? Öö Tiib <ootiib@hot.ee> - 2022-11-03 09:06 -0700
              Re: What is this header good for ? Bonita Montero <Bonita.Montero@gmail.com> - 2022-11-04 20:12 +0100
                Re: What is this header good for ? Öö Tiib <ootiib@hot.ee> - 2022-11-05 06:24 -0700
                Re: What is this header good for ? Bonita Montero <Bonita.Montero@gmail.com> - 2022-11-05 15:51 +0100
                Re: What is this header good for ? Öö Tiib <ootiib@hot.ee> - 2022-11-05 09:44 -0700
                Re: What is this header good for ? Bonita Montero <Bonita.Montero@gmail.com> - 2022-11-05 18:11 +0100
                Re: What is this header good for ? Öö Tiib <ootiib@hot.ee> - 2022-11-05 16:03 -0700
                Re: What is this header good for ? Bonita Montero <Bonita.Montero@gmail.com> - 2022-11-06 06:19 +0100
                Re: What is this header good for ? Bonita Montero <Bonita.Montero@gmail.com> - 2022-11-06 10:34 +0100

csiph-web