Boost C++ Libraries: Ticket #7856: pop_front() and pop_back() docs missing https://svn.boost.org/trac10/ticket/7856 <p> These iterator_range functions appear to be undocumented. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7856 Trac 1.4.3 Dave Abrahams Fri, 04 Jan 2013 21:13:02 GMT <link>https://svn.boost.org/trac10/ticket/7856#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7856#comment:1</guid> <description> <p> OK, but the names (at least the ones that get documented) should be changed to <code>drop_front</code> and <code>drop_back</code>. <code>pop_</code><em>xxx</em> implies the element is getting destroyed. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Neil Groves</dc:creator> <pubDate>Tue, 04 Mar 2014 13:12:49 GMT</pubDate> <title>status, milestone changed https://svn.boost.org/trac10/ticket/7856#comment:2 https://svn.boost.org/trac10/ticket/7856#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.56.0</span> </li> </ul> <p> That's a great suggestion. I used the names from the Alexandrescu work, but this is better. </p> Ticket Olaf van der Spek <ml@…> Tue, 04 Mar 2014 13:48:12 GMT <link>https://svn.boost.org/trac10/ticket/7856#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7856#comment:3</guid> <description> <p> I like pop_ better, especially as existing code is already using it. The type already indicates it's not actually destroying elements. Just like pop_back() for a vector&lt;T*&gt;. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Neil Groves</dc:creator> <pubDate>Tue, 04 Mar 2014 20:42:05 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7856#comment:4 https://svn.boost.org/trac10/ticket/7856#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> I much prefer drop_front and drop_back as it avoids accidentally modifying containers. While I appreciate the frustration of having to modify your code it is a small change to functions that were not documented. </p> <p> I've modified all of my code that uses these functions in the space of half an hour. I hope that the increased work that you incur is small too. </p> <p> I've renamed the functions and added tests for these. </p> Ticket Olaf van der Spek <ml@…> Tue, 04 Mar 2014 20:57:35 GMT <link>https://svn.boost.org/trac10/ticket/7856#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7856#comment:5</guid> <description> <p> I'll survive, do the required #ifdef's based on BOOST_VERSION probably won't be pretty. </p> </description> <category>Ticket</category> </item> <item> <author>Olaf van der Spek <ml@…></author> <pubDate>Tue, 04 Mar 2014 20:57:49 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7856#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7856#comment:6</guid> <description> <p> though* </p> </description> <category>Ticket</category> </item> </channel> </rss>