by Ian Collins <ian-news@[EMAIL PROTECTED]
>
May 6, 2008 at 06:00 PM
subramanian100in@[EMAIL PROTECTED]
India wrote:
> I am copying the following lines as it is, from Stanley Lippman's C++
> Primer 4th edition, page 418(First paragraph).
>
> It says:
> "Although the map and set types provide bidirectional iterators, we
> can use only a subset of the algorithms on associative containers. The
> problem is that key in an associative container is const. Hence, any
> algorithm that writes to elements in the sequence cannot be used on an
> associative container. We may use iterators bound to associative
> containers only to supply arguments that will be read."
>
> Here, consider the line "any algorithm that writes to elements in the
> sequence cannot be used on an associative container".
>
>
> Here I am able to write merged elements into dest and copy elements
> into temp. Can these operations be considered as "writing elements
> into associative container" ?
"writes *to* elements in the sequence" != "writing elements *into*
associative container"
--
Ian Collins.