Why do lvalue-to-rvalue conversions exist? Why are they required?

ساخت وبلاگ
چکیده : From what I gather, lvalue-to-rvalue conversions happen when an objects value is required, rather th... با عنوان : Why do lvalue-to-rvalue conversions exist? Why are they required? بخوانید :

From what I gather, lvalue-to-rvalue conversions happen when an objects value is required, rather than just it's value. Does that mean that lvalues can only hold the address of an object, while a prvalue holds the value of the object?

Also, could someone clarify for me why lvalues (glvalues) have to be converted to rvalues (prvalues)? Is there a reason why it has to be converted, in cases such as initialization?

back soft...
ما را در سایت back soft دنبال می کنید

نویسنده : استخدام کار بازدید : 4 تاريخ : جمعه 23 آذر 1397 ساعت: 20:38