[C++-sig] Re: Re: Re: Re: map key

Mike Rovner mike at bindkey.com
Thu Jan 23 20:27:26 CET 2003


"David Abrahams" <dave at boost-consulting.com> wrote in message
news:uel73k82w.fsf at boost-consulting.com...
> > Nevertheless should it be like that
> > ...
> > .def("__iter__", range<>(
> >   boost::make_transform_iterator(&StdMap::begin,std::select1st),
> >   boost::make_transform_iterator(&StdMap::end,std::select1st)
> > )
> > ?
> >
> > And how I can insert ptr() call inside that iterator; with return
policy?
>
> I'm confused; why would you want to?  There's no pointer involved.

Oh, I'm sorry. That was two different questions.
The second is
Can I use return_police to force range<>() iterator apply ptr() to the
argument before converting it to object.

That is not related to map::iterator problem, that is consequences of my
another problem when I use some T* holded elsewhere and passing along as
internal_reference.

Mike







More information about the Cplusplus-sig mailing list