Dear Matt,
> My question is:
> In the following scenario where you are using STL stack or vector
> container with a class object, ie:
>
> stack<board> moves;
>
> if you do something like:
>
> moves.push( thismove );
>
> Does thismove get copied or is it passed into the stack by reference?
void push(const value_type&)
This is the signature of stack<>::push(). I think it is self-defintive, isn't it?
Regards,
--Hossein
--
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers
|