cost 233 ms
Passing an rvalue to a function

I read a lot of information about rvalue links, I understood everything, but I met this example: If you pass rvalue to the make_raw_ptr function wi ...

2022-05-13 04:29:51   1   73    c++ / rvalue  
Return of a func

Consider this code: There is a friend function in line 14. this function declares an object inside its body. and at the the end returns that object ...

Getter returns a rvalue?

I know it's a bad attempt but why we cannot edit the private member via the getter? I think GetA1() doesn't work because it's using a rvalue, the c ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM