Exemple #1
0
 String(mojo::temporary<String> src) 
 {
   String& rhs = src.get();
   data_.swap(rhs.data_);
 }
Exemple #2
0
 MoveOnlyString (mojo::temporary<char> t) throw () // The proxy move constructor
   : data_(t.get())
 {
   printf("mojo::temporary to MoveOnlyString constructor\n");
 }