|
Boost : |
Subject: [boost] [range] resulting range type
From: Andrey Torba (andreytorba_at_[hidden])
Date: 2010-03-01 10:39:13
Hi All,
When i implement range based algorithms i always have to write
`boost::iterator_range<typename boost::range_iterator<R>::type>'. It is
pretty annoying.
i.e.:
template<class R>
boost::iterator_range<typename boost::range_iterator<R>::type> Algo(R& r);
I would like to have special metafunction in Boost.Range for such cases to
make code more cleaner:
template<class R>
typename boost::make_range<R>::type Algo(R& r);
What do you think?
-- Regards, Andrey
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk