Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Ai Azuma<ai.azuma@gmail.com> |
|---|---|
| Newsgroups | comp.std.c++ |
| Subject | Re: Allocator-awareness and value-initialization on container elements |
| Date | 2011-10-03 10:12 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <8273cc7f-ac8a-41bb-9adc-a074ee796140@d28g2000vby.googlegroups.com> (permalink) |
| References | <710bc167-27dc-4cfb-ada0-5444457f083c@i9g2000yqe.googlegroups.com> <j650rt$rro$1@dont-email.me> |
On Oct 2, 12:12 am, Daniel Krügler<daniel.krueg...@googlemail.com> wrote: > I completely agree with what you write here. Note that there exists a > new proposal > > http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3301.pdf > > which has basically the same effect, but introduces a separate new term > for allocator-aware containers - DefaultInsertable - which is defined to > be equal to > > allocator_traits<A>::construct(m, p); > > (Just ignore the 'contruct' typos in the paper). I consider the > introduction of a separate new name (but still easy to recognice with > the good ol' DefaultConstructible requirement set). Oh, sorry. I overlooked that paper. Thank you for your kindness. In essence, I am happy to see that the proposal agreed with me that elements in containers should be consistently constructed and destroyed via allocator traits' member functions. > In regard to your criticism of the term value-initialization I agree as > well. IMO the proposal should be updated to fix these terms here as well. I hope the current wording will get fixed and become more precise. Thank you for your reply! -- [ comp.std.c++ is moderated. To submit articles, try posting with your ] [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to comp.std.c++ | Previous | Next — Previous in thread | Find similar
Allocator-awareness and value-initialization on container elements Ai Azuma<ai.azuma@gmail.com> - 2011-09-30 10:36 -0700
Re: Allocator-awareness and value-initialization on container elements Daniel Krügler<daniel.kruegler@googlemail.com> - 2011-10-01 08:12 -0700
Re: Allocator-awareness and value-initialization on container elements Ai Azuma<ai.azuma@gmail.com> - 2011-10-03 10:12 -0700
csiph-web