Does std::map provides a copy assignment operator?



hi all,

I am just puzzled that whether std::map provides an assignment operator or
not?

I couldnt find any in the source code of STL implementation accompanying
visual studio .net 2003 (VC7.1).

What does C++ standard say about it?

Also, here is an implementation of std::map that does provide an assignment
operator.

http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/classstd_1_1map.html#std_1_1mapa27

If this implemation provides why doenst Visual studio .net 2003 (VC7.1)?


.



Relevant Pages

  • Re: Does std::map provides a copy assignment operator?
    ... This works because of the default assignment operator provided by the ... If you see the source code of std::map accompanying VC7.1, you wont see any ... Source code is attached for reference. ... >> I couldnt find any in the source code of STL implementation ...
    (microsoft.public.vc.stl)
  • Re: Does std::map provides a copy assignment operator?
    ... Are you saying that the default assignment operator doesn't do the right ... If the default assignment operator is good enough, why bother to ... > Source code is attached for reference. ...
    (microsoft.public.vc.stl)
  • Re: Does std::map provides a copy assignment operator?
    ... Simon Watson wrote: ... > Are you saying that the default assignment operator doesn't do the right ... assignment operator just copies the underlying bits to bits. ... >> Source code is attached for reference. ...
    (microsoft.public.vc.stl)