Boost logo

Boost :

Subject: Re: [boost] [RangeEx] Range & RangeEx
From: Arno Schödl (aschoedl_at_[hidden])
Date: 2008-09-13 13:27:28


> If only the Rng& version were provided it would be impossible to
> pass a rvalue range to find. If only the const Rng& version were
> provided, we would always add const even when it isn't needed (I'm
> not sure that this matters for find, since it is a non-mutating
> algorithm, though)

The Rng& version is needed because if you pass in a mutable range,
you may want a mutable iterator as return value.

Arno

--
Dr. Arno Schoedl · aschoedl_at_[hidden] 
Technical Director 
 
think-cell Software GmbH · Invalidenstr. 34 · 10115 Berlin, Germany 
http://www.think-cell.com · phone +49-30-666473-10 · toll-free (US) +1-800-891-8091
Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl · Amtsgericht Charlottenburg, HRB 85229

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