|
Boost : |
From: JOAQUIN LOPEZ MU?Z (joaquin_at_[hidden])
Date: 2005-04-29 14:33:16
Hello,
If I'm understanding the Boost.PointerContainer docs,
ptr_begin(), ptr_end() etc. are provided so that
certain mutating std algorithms can be used on
pointer containers.
But wouldn't it be more convenient to provide
a memfun like
ptr_iterator make_ptr_iterator(iterator);
for obtaining a ptr_iterator from a
regular iterator? This way, one could easily use
std algorithms not only with [ptr_begin(),ptr_end()),
but also with any other range (for instance,
those obtained from equal_range()). With this memfun,
the ptr_begin() familiy would be kind of redundant.
Just an idea...
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk