|
Boost : |
From: Jeremy Siek (jsiek_at_[hidden])
Date: 2002-08-07 14:21:04
What you describe here is basically what I've suggested (and plan to
propose) for improved iterator categories in the standard.
http://groups.yahoo.com/group/boost/files/iterator-categories.html
On Wed, 7 Aug 2002, George A. Heintzelman wrote:
george>
george> IMHO to do this right this is something *like* an iterator_traits, it's
george> a dereferenceable_traits. Unfortunately, the right way is to have
george> iterator_traits defined in terms of dereferenceable_traits, but that
george> requires a change to the standard :(. Alternatively, shared_ptr (&
george> cousins) could define value_type, pointer, and reference, without
george> defining difference_type or iterator_category -- meaning the parts of
george> iterator_traits that are needed in this context would work fine, but
george> the other parts would fail as they should. That latter might be the
george> cleanest improvement without going through change to the standard...
george>
george> George Heintzelman
george> georgeh_at_[hidden]
george>
----------------------------------------------------------------------
Jeremy Siek http://php.indiana.edu/~jsiek/
Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk