01 2021 档案

智能指针std::weak_ptr
摘要: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 阅读(171) 评论(0) 推荐(0) 编辑

google相关的基础软件
摘要: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 阅读(202) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示