Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-01-20 11:45:56


Bruno Martínez <br1_at_[hidden]> writes:

> On Fri, 20 Jan 2006 05:52:22 -0200, Joaquín Mª López Muñoz
> <joaquin_at_[hidden]> wrote:
>
>> OK, you have shown a realistic scenario where the feature
>> is valuable, so I'm putting this into my todo list --probably
>> I can have it in time for 1.34, but I'm very slow writing and checking
>> things :) Any suggestions about the name/syntax? Something like:
>>
>> iterator iter_to(const value_type& x)const;
>
> iterator_from()?
>
> I don't know. I'm spanish speaking too.

  position(const value_type& x) const;

or if you are worried about "position" sounding like a verb,

  get_position(const value_type& x) const;

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk