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::getIntegerNum();//クラス関数(static)の右辺値参照代入
+
   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::getIntegerNum();//クラス関数(static)の右辺値参照代入
+
   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;

2014年10月23日 (木) 00:00時点における版



個人用ツール
名前空間

変種
操作
案内
ツールボックス