摘要: std::shared_ptr:多个指针指向同一对象,一起操作没问题,意思是你可以把这个指针复制给别人,最后一个指针退出时,对象自动清除std::bind返回函数指针,std::function m_timeout_disconnect; 返回值void ,一个参数是__int64类型的m_timeout_disconnect =std::bind(&GameServer::timeout_disconnect, this, std::placeholders::_1);std::placeholders::_1:表示调用函数对象的第一参数,如m_timeout_disconnect( 阅读全文
posted @ 2014-03-21 15:47 zzyoucan 阅读(149) 评论(0) 推荐(0) 编辑