If I move shared_ptr ‘a’ into shared_ptr ‘b’ is ‘a’ guaranteed to be null?
Is the state of any standard class after being moved specified?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In general 17.6.5.15/1 applies:
Thus you can call any functions which requires no precondition.
If specified, what @Xeo said applies.