2013年8月27日

摘要: MoveConstructible 和MoveAssignableMoveConstructibleSpecifies that an instance of the type can be move-constructed (moved). This means that type has move semantics: that is, can transfer its internal state to a new instance of the same type potentially minimizing the overhead.The type must meet CopyCo 阅读全文
posted @ 2013-08-27 12:27 做个不善的人 阅读(366) 评论(0) 推荐(0)
 
摘要: unique_ptr最先在boost中被定义,后来被C++标准委员会选中为C++11的feature之一。std::unique_ptr is a smart pointer that retains sole ownership of an object through a pointer and destroys that object when the unique_ptr goes out of scope. No two unique_ptr instances can manage the same object.The object is destroyed and its me 阅读全文
posted @ 2013-08-27 12:21 做个不善的人 阅读(467) 评论(0) 推荐(0)