fork download
  1. #include <iostream>
  2. #include <utility>
  3. using namespace std;
  4. int main(){
  5. string s1 ("123");
  6. cout << hex << (void*)&s1[0] << endl;
  7. string s2 (move(s1));
  8. cout << hex << (void*)&s2[0] << endl;
  9. }
Success #stdin #stdout 0s 3028KB
stdin
Standard input is empty
stdout
0x83ab014
0x83ab014