示例#1
0
 String(mojo::temporary<String> src) 
 {
   String& rhs = src.get();
   data_.swap(rhs.data_);
 }
示例#2
0
文件: mojo.cpp 项目: IMCG/cpptruths
 MoveOnlyString (mojo::temporary<char> t) throw () // The proxy move constructor
   : data_(t.get())
 {
   printf("mojo::temporary to MoveOnlyString constructor\n");
 }