Subject: [Boost-bugs] [Boost C++ Libraries] #1151: [range] make_indirect_range()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-08-08 14:26:58
#1151: [range] make_indirect_range()
--------------------------------------------+-------------------------------
Reporter: Marcus Lindblom <macke_at_[hidden]> | Type: Patches
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.34.1
Severity: Cosmetic | Keywords:
--------------------------------------------+-------------------------------
The following function is useful sometimes:
{{{
#!cpp
template <class R>
inline boost::iterator_range<boost::indirect_iterator<typename
boost::range_result_iterator<R>::type > >
make_indirect_range(R& r)
{
return boost::iterator_range<boost::indirect_iterator<typename
boost::range_result_iterator<R>::type > > (r);
}
}}}
I'd assume there ought to be similar functions for all iterators
presented? Or is there an easier way to do this?
P.S. No component for range yet?
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1151>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC