Boost C++ Libraries: Ticket #6240: iterator_size https://svn.boost.org/trac10/ticket/6240 <p> Could you add iterator_size to boost/iterator/iterator_traits.hpp? </p> <p> It'd be size_t for pointers and, since std::iterator_traits does not yet define size_type, make_unsigned iterator_difference. </p> <p> It'd be used for the size of a range as given by a valid pair of iterators. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6240 Trac 1.4.3 jeffrey.hellrung Mon, 08 Oct 2012 04:19:40 GMT <link>https://svn.boost.org/trac10/ticket/6240#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6240#comment:1</guid> <description> <p> This seems to be more appropriately placed within the Range library than the Iterator library, doesn't it? </p> </description> <category>Ticket</category> </item> <item> <author>Olaf van der Spek <olafvdspek@…></author> <pubDate>Mon, 08 Oct 2012 08:03:22 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6240#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6240#comment:2</guid> <description> <p> Why? It's a trait of iterators. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>jeffrey.hellrung</dc:creator> <pubDate>Mon, 08 Oct 2012 12:44:18 GMT</pubDate> <title>cc set https://svn.boost.org/trac10/ticket/6240#comment:3 https://svn.boost.org/trac10/ticket/6240#comment:3 <ul> <li><strong>cc</strong> <span class="trac-author">jeffrey.hellrung</span> added </li> </ul> Ticket jeffrey.hellrung Mon, 08 Oct 2012 12:47:14 GMT <link>https://svn.boost.org/trac10/ticket/6240#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6240#comment:4</guid> <description> <p> IMO, it's more accurately a range trait. I don't see a context in which you'd speak of an "iterator's size type" outside of a range. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 08 Oct 2012 12:49:53 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6240#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6240#comment:5</guid> <description> <p> True, but the same applies to difference_type. </p> <p> I don't really mind where this gets implemented though. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>jeffrey.hellrung</dc:creator> <pubDate>Sat, 13 Oct 2012 18:58:19 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6240#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6240#comment:6</guid> <description> <p> It looks like it's already implemented via boost/range/size_type.hpp, no? Would you be okay with closing this ticket? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 14 Oct 2012 14:22:43 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6240#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6240#comment:7</guid> <description> <p> Maybe, where is it documented? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Dave Abrahams</dc:creator> <pubDate>Wed, 21 Nov 2012 22:20:44 GMT</pubDate> <title>owner changed https://svn.boost.org/trac10/ticket/6240#comment:8 https://svn.boost.org/trac10/ticket/6240#comment:8 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Dave Abrahams</span> to <span class="trac-author">jeffrey.hellrung</span> </li> </ul> Ticket