示例#1
0
 MyObject& operator=(MyObject&& rhs) {
   logger.WriteMessage(L"move assignment op");
   value = std::move(rhs.value);
 }
示例#2
0
 ~MyObject() {
   logger.WriteMessage(L"dstr");
 }
示例#3
0
 MyObject& operator=(const MyObject& rhs) {
   logger.WriteMessage(L"assigment op");
   value = rhs.value;
 }
示例#4
0
 MyObject(MyObject&& rhs) {
   logger.WriteMessage(L"move cotr");
   value = std::move(rhs.value);
 }
示例#5
0
 MyObject(const MyObject& rhs) {
   logger.WriteMessage(L"copy cotr");
   value = rhs.value;
 }
示例#6
0
 MyObject(std::wstring value) {
   logger.WriteMessage(L"cotr");    
   this->value = value;
 }
示例#7
0
 MyObject() {
   logger.WriteMessage(L"cotr");    
 }