Is it safe for me to start using code with range/range_ex?
Since the http://www.boostpro.com/vault/index.php?directory=Algorithms
version hasn't been updated for a while, I was worried that there
could be interface changes. I am perfectly willing to use a subset of
algorithms that are expected to remain stable
-Jesse
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi there,
I am excited to start using ranges in user code with standard
algorithms (mostly copy, transform, binary_searches).
Is it safe for me to start using code with range/range_ex?
Great. Should I use the copy in: http://www.boostpro.com/vault/index.php?directory=Algorithms
or SVN version?
Thanks for such an important library.
Great. Should I use the copy in: http://www.boostpro.com/vault/index.php?directory=Algorithms
or SVN version?
Have you written anything about how to write my own adaptors? I have
several iterator adaptors that I'd like to try converting to range adaptors.
I noticed the 'strided' example which seems like a good starting example.
One I'm interested in is adaptors that convert between interpretations of
sequences as real and complex.
Thanks Neil, everything seems to work swimmingly. One question
related to the make_XXX_ I had was the preferred method (today and in
the future post inclusion into the standard library if they are
different) for creating ranges from a subset of a container. i.e.
what is intended equivalent to:
std::copy(myvec.begin() + 1, myvec.end(), targetvec.begin());
Should I be using something like:
boost::copy(
myvec | sliced(1, myvec.size()),
targetvec.begin());
Or:
boost::copy(
make_range(myvec, 1, myvec.size())),
targetvec.begin());
or...:
boost::copy(
make_iterator_range( mvec.begin() + 1, myvec.end(),
targetvec.begin() );
Thanks,
several iterator adaptors that I'd like to try converting to range adaptors.Have you written anything about how to write my own adaptors? I have
I noticed the 'strided' example which seems like a good starting example.
One I'm interested in is adaptors that convert between interpretations of
sequences as real and complex.
Should I be using something like:boost::copy(
myvec | sliced(1, myvec.size()),
targetvec.begin());
Or:
boost::copy(
make_range(myvec, 1, myvec.size())),
targetvec.begin());
or...:
boost::copy(
make_iterator_range( mvec.begin() + 1, myvec.end(),
targetvec.begin() );