01 2021 档案

摘要:std::weak_ptr 避免shared_ptr内存泄漏的利器。 smart pointer 三兄弟性格各异。unque_ptr是独来独往,shared_ptr是左拥右抱,而weak_ptr生来就不是为了单打独斗,了解之后你会发现他总是和shared_ptr出双入对。 既然shared_ptr是 阅读全文

posted @ 2021-01-19 14:38 gary_123 阅读(189) 评论(0) 推荐(0)

摘要:1、glog GlogTest.cpp #include <iostream> #include <stdlib.h> #include <glog/logging.h> #include <ros/ros.h> int main(int argc, char** argv) { google::I 阅读全文

posted @ 2021-01-16 21:42 gary_123 阅读(227) 评论(0) 推荐(0)

导航