Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-08-19 10:53:50


Jeremy Maitin-Shepard <jbms_at_[hidden]> writes:

> All operating systems with which I am familiar only support reading and
> writing from memory ranges. Thus, if the iterators are actually
> pointers, this can be implemented efficiently. If they are not
> pointers, though, a temporary buffer will have to be allocated, the
> actual read performed using this temporary buffer, and then the data
> copied to the output iterator provided by the user. Because of this
> inefficiency, I doubt anyone would actually use the iterator interface
> with non-pointers.

In that case I'm strongly in favor of a low-level interface using
pointers.

-- 
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