
19 Aug
2005
19 Aug
'05
3:53 p.m.
Jeremy Maitin-Shepard <jbms@cmu.edu> 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