Boost Users :
Subject: Re: [Boost-users] [Range] Range adaptors and compatibility with non-adapted iterators
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2012-01-11 11:59:47
Den 11-01-2012 06:23, John M. Dlugosz skrev:
> Consider something like this:
> themap_type::iterator search_for (int val)
> return boost::find_if (themap|map_values, my_predicate(val));
> auto it2= boost::find_if (themap|map_values, my_predicate(val));
> if (it2 == themap::end()) // same problem!
As stated, iter.base() should work.
That said, it is still somewhat of a usability problem.
We should seriously consider to add
A. an implicit conversion operator to the underlying iterator (explicit
B. overloaded comparison opearators between iterators and wrapped iterators.
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