|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-11-26 14:42:36
"Jesse Booher" <jbooher_at_[hidden]> writes:
> I just discovered boost::mpl a couple of weeks ago and have been
> working to understand its operation and potential.
Great!
> I'm also eager to contribute to the mpl development if I can.
Also great!
> I notice that there is, as yet, no sorting algorithms.
http://boost-consulting.com/boost/boost/mpl/sort.hpp
> Perhaps a good first step towards an efficient sort algorithm would
> be to introduce merge functionality analogous to stl::merge. To
> this end I was thinking of implementing a sequence view such as:
>
> Synopsis
>
> template< typename Sequence1 , typename Sequence2 , typename Pred =
> less<_,_> > struct merge_view { // unspecified };
>
>
> Description merge_view is a two-sequence view that allows one to
> operate on a merged sequence of elements of sequences Sequence1 and
> Sequence2 without actually creating one. If Sequence1 and Sequence2
> are both sorted sequences (by Pred) then the resulting view will be
> sorted.
>
> I am interested in getting opinions from the development community on
> this idea.
Sounds good. Do you have a use-case for it?
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk