Boost logo

Boost Users :

Subject: Re: [Boost-users] boost any_range
From: Neil Groves (neil_at_[hidden])
Date: 2012-07-12 10:46:38


Hi Tolik,

On 12/07/12 14:05, tolik levchik wrote:
> Is it possible the commented below condition. With regular ranges i
> make as many 'base()' calls as may adaptors i had applied. Obviously
> it's impossible with any_range. So what should i do ?
> map_t m;
> forward_range_t rng = m | map_values | transformed(bind(&foo::x, _1));
> // note: don't compile without BOOST_RANGE_ENABLE_CONCEPT_ASSERT
> defined as 0
> forward_range_t::const_iterator found = boost::find_if(rng, is_valid);
> //found == boost::end(m); how to do it right ?
> }
>

found == boost::end(rng);

Regards,
Neil Groves



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net