Path: csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Jason McKesson Newsgroups: comp.std.c++ Subject: Re: Container adaptor - missing container support operation Date: Wed, 25 Apr 2012 13:56:33 -0700 (PDT) Organization: http://groups.google.com Lines: 41 Sender: std-cpp-request@vandevoorde.com Approved: stephen.clamage@oracle.com Message-ID: <30470639.1126.1335304685758.JavaMail.geo-discussion-forums@ynid15> References: <60068140-4f4a-434e-af9d-d6391c284fb8@g6g2000pbq.googlegroups.com> NNTP-Posting-Host: A3+ux+I1nzCFtmK3ygXwJutMtz4L4PnPbZjMWDY8N5Y= Content-Type: text/plain; charset=ISO-8859-1 X-Trace: news.albasani.net XTUijj80hc/JMMClDB32YhfH4iF4Q/tK/8h55CLI767wl/WZwXvcr04N1ivVJkMa9Lw+edf46ODY3C7kJmo6Jg== X-Complaints-To: abuse@albasani.net NNTP-Posting-Date: Wed, 25 Apr 2012 20:56:34 +0000 (UTC) X-Mailer: Perl5 Mail::Internet v2.05 X-Submission-Address: std-cpp-submit@vandevoorde.com Cancel-Lock: sha1:rhCEAa+zGBnlwCqBGDOMKUXwS8E= X-Original-Date: Tue, 24 Apr 2012 14:58:05 -0700 (PDT) Xref: csiph.com comp.std.c++:490 On Tuesday, April 24, 2012 11:03:54 AM UTC-7, Akira Takahashi wrote: > Hi, > > I read N3337's Container adaptors specification. > I think missing support operation : emplace_back(). > > 23.6.3.1 queue definition > Any sequence container supporting operations front(), back(), > push_back() and pop_front() can be used to instantiate queue. > > => add emplace_back(). > > > 23.6.4 Class template priority_queue > Any sequence container with random access iterator and supporting > operations front(), push_back() and pop_back() can be used to > instantiate priority_queue. > > => add emplace_back(). > > > 23.6.5 Class template stack > Any sequence container supporting operations back(), push_back() and > pop_back() can be used to instantiate stack. > > => add emplace_back(). > > > Regards, > Akira > > All of those containers have "emplace" functions, which does the same thing. You can only push into one place on the adapters, so "_back" is meaningless. -- [ 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 ]