Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Jason McKesson<jmckesson@gmail.com> |
|---|---|
| Newsgroups | comp.std.c++ |
| Subject | Re: Container adaptor - missing container support operation |
| Date | 2012-04-26 11:07 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <20613189.815.1335395015691.JavaMail.geo-discussion-forums@vbq5> (permalink) |
| References | <60068140-4f4a-434e-af9d-d6391c284fb8@g6g2000pbq.googlegroups.com> <nevin-33221D.15255725042012@news.speakeasy.net> |
On Wednesday, April 25, 2012 3:44:17 PM UTC-7, Nevin :-] Liber wrote: > > Hi, > > > > I read N3337's Container adaptors specification. > > I think missing support operation : emplace_back(). > > The adaptors all have emplace methods in C++11. Why is that not > sufficient? > > -- > Nevin ":-)" Liber<mailto:nevin@eviloverlord.com> Actually, I realized after I replied that he's talking about the *requirements* of the base container. That is, `std::stack::emplace` is supposed to call `emplace_back` on the container, right? But the requirements on the `std::stack` container doesn't say that `emplace_back` is *required*. And you can't call functions on something that you didn't require to actually have those functions. -- [ 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 | Next in thread | Find similar
Container adaptor - missing container support operation Akira Takahashi <faithandbrave@gmail.com> - 2012-04-24 11:03 -0700
Re: Container adaptor - missing container support operation Daniel Krügler<daniel.kruegler@googlemail.com> - 2012-04-25 13:56 -0700
Re: Container adaptor - missing container support operation Jason McKesson<jmckesson@gmail.com> - 2012-04-25 13:56 -0700
Re: Container adaptor - missing container support operation Akira Takahashi<faithandbrave@gmail.com> - 2012-04-26 11:07 -0700
Re: Container adaptor - missing container support operation "Nevin \":-]\" Liber" <nevin@eviloverlord.com> - 2012-04-25 15:44 -0700
Re: Container adaptor - missing container support operation Jason McKesson<jmckesson@gmail.com> - 2012-04-26 11:07 -0700
Re: Container adaptor - missing container support operation Akira Takahashi <faithandbrave@gmail.com> - 2012-04-27 11:12 -0700
csiph-web