Cpp 右辺値参照 新しいページはコチラ
提供: yonewiki
(→右辺値参照) |
|||
86行: | 86行: | ||
printf("rrefnCReturn2 Addres->%x, rrefnCReturn2 Value->%d\n",&rrefnCReturn2,rrefnCReturn2); | printf("rrefnCReturn2 Addres->%x, rrefnCReturn2 Value->%d\n",&rrefnCReturn2,rrefnCReturn2); | ||
− | int&& rrefnStaticCReturn = CTest:: | + | int&& rrefnStaticCReturn = CTest::getIntegerNumStatic();//クラス関数(static)の右辺値参照代入 |
printf("rrefnStaticCReturn Addres->%x, rrefnStaticCReturn Value->%d\n",&rrefnStaticCReturn,rrefnStaticCReturn); | printf("rrefnStaticCReturn Addres->%x, rrefnStaticCReturn Value->%d\n",&rrefnStaticCReturn,rrefnStaticCReturn); | ||
− | int&& rrefnStaticCReturn2 = CTest:: | + | int&& rrefnStaticCReturn2 = CTest::getIntegerNumStatic();//クラス関数(static)の右辺値参照代入 |
printf("rrefnStaticCReturn2 Addres->%x, rrefnStaticCReturn2 Value->%d\n",&rrefnStaticCReturn2,rrefnStaticCReturn2); | printf("rrefnStaticCReturn2 Addres->%x, rrefnStaticCReturn2 Value->%d\n",&rrefnStaticCReturn2,rrefnStaticCReturn2); | ||
return 0; | return 0; |