When I write,
T &t = obj;
Is this considered an instruction (which generates machine code) or just a second name of obj?
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.
I don’t think that the standard ever uses the word instruction, except for generated code. The line
T &t = obj;is a declaration statement which is a definition; it’s a statement, but so are things likeusing std::string;. It may or may not result in executable code being generated, depending on a lot of things.Also (because of your title): there’s no assignment in
T &t = obj;.