
23 Mar
2009
23 Mar
'09
1:28 p.m.
Hi Satyam, Satyam Shekhar skrev:
Hi,
2. What are the examples of the low-level operations for which this container is over-encapsulated?
One thing is the iterators. As the paper by Austern explains for( segment : c.segments() ) for( unsigned n = 0u; n < segment.size; ++ n ) foo( segment[n] ) is faster than using iterators. Another is related to serialization, see e.g. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2212.html -Thorsten