Boost C++ Libraries: Ticket #9299: Feature Requests: circular_buffer::emplace(...) https://svn.boost.org/trac10/ticket/9299 <p> I think a great addition to circular_buffer would be to support emplace(...)/emplace_back()/emplace_front() to make it more C++11 compliant. </p> <p> At the first quick glance I took at the source, implementation seems straight-forward, more or less c&amp;p the code from insert/push_back/push_front and construct the items in-place instead. The tricky part however would be to stay compliant with older C++ versions, if that is a desired feature (and it seems to be considering that e.g. Boost.Move can be used instead of the C++11 move semantics). I do not have an idea how to do this as I'm not an experienced boost developer (or actually even user for that matter). </p> <p> If older C++-compliance is not needed and my assumption of simply "c&amp;ping insert/push_back/push_front" is confirmed by a boost developer, I could probably provide a patch a few weeks from now (my time is a bit limited at the moment) if required. If the compliance is needed however, I would prefer that a more experienced developer would implement it. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9299 Trac 1.4.3 Jan Gaspar Thu, 24 Oct 2013 21:32:53 GMT owner changed https://svn.boost.org/trac10/ticket/9299#comment:1 https://svn.boost.org/trac10/ticket/9299#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Jan Gaspar</span> to <span class="trac-author">No-Maintainer</span> </li> </ul> Ticket Doug Brunner <doug.a.brunner@…> Thu, 26 Oct 2017 19:13:18 GMT <link>https://svn.boost.org/trac10/ticket/9299#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9299#comment:2</guid> <description> <p> +1 to this, would be a welcome refinement. </p> </description> <category>Ticket</category> </item> <item> <author>ai0867@…</author> <pubDate>Fri, 10 Nov 2017 23:15:48 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/9299 https://svn.boost.org/trac10/ticket/9299 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">0001-Add-emplace_-back-front-to-circular_buffer.patch</span> </li> </ul> Ticket ai0867@… Fri, 10 Nov 2017 23:16:05 GMT attachment set https://svn.boost.org/trac10/ticket/9299 https://svn.boost.org/trac10/ticket/9299 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">0002-Add-emplace_-back-front-to-circular_buffer_space_opt.patch</span> </li> </ul> Ticket ai0867@… Fri, 10 Nov 2017 23:17:17 GMT <link>https://svn.boost.org/trac10/ticket/9299#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9299#comment:3</guid> <description> <p> I've attached two patches implementing emplace_front() and emplace_back() for circular_buffer and circular_buffer_space_optimized. </p> </description> <category>Ticket</category> </item> <item> <author>ai0867@…</author> <pubDate>Tue, 28 Nov 2017 21:03:11 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9299#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9299#comment:4</guid> <description> <p> Also submitted as a pull request at <a class="ext-link" href="https://github.com/boostorg/circular_buffer/pull/15"><span class="icon">​</span>https://github.com/boostorg/circular_buffer/pull/15</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>