Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-05-17 15:11:06

> Hello,
> More than a year ago a request was made for
> Boost.MultiIndx to provide the ability to
> get an iterator to an element x from x alone:
> iterator iterator_to(const value_type& x);
> I can provide this functionality in constant time,
> and the internal implementation is trivial, but
> I got thinking about the potential use cases for
> such capability and cannot come up with something
> convincing.

void X::f()
    iterator i = iterator_to( *this );


Boost list run by bdawes at, gregod at, cpdaniel at, john at