Who can give me a link for the operator= of vector in MSDN?

Posted by 8888q8888 on Stack Overflow See other posts from Stack Overflow or by 8888q8888
Published on 2010-04-15T03:39:23Z Indexed on 2010/04/15 3:43 UTC
Read the original article Hit count: 244

Filed under:
|

Who can give me a link for the operator= of vector in MSDN?

Why I can only find operator[]?

If operator= is just something default, like copy everything in A to B, how this following code works?

vector<double> v(100,1);
v = vector<double>(200,2);   // if operator= is just a trivail version, how to make sure the old v get cleared? 

© Stack Overflow or respective owner

Related posts about c++

Related posts about operators