• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
我是张洪铭我是熊博士
时光静好,与君同;细水长流,与君语
博客园    首页    新随笔    联系   管理    订阅  订阅

随笔分类 -  C++ STL 积累整理

整理遇到过的 STL 相关的知识。比如说 STL 里面容器,适配器,迭代器,算法等。把日常遇到的记录下来,便于自己和网友查阅和回顾。
STL 算法 std::for_each

摘要:std::for_each(threads.begin(),threads.end(), std::mem_fn(&std::thread::join)); 1. 说明 2. 写用法 3.写样例 直接参考 cplusplus官网讲解: http://www.cplusplus.com/referen 阅读全文
posted @ 2021-10-04 16:38 我是张洪铭我是熊博士 阅读(3474) 评论(0) 推荐(0)
STL 算法清单

摘要:C++/Reference/Other/functional/ STL 算法 std::mem_fn 成员函数转为函数对象 C++/Reference/Other/algorithm/ STL 算法 std::for_each 遍历一段区间内的元素,并把元素作为参数,执行一个可调用对象 C++/Re 阅读全文
posted @ 2021-10-04 15:12 我是张洪铭我是熊博士 阅读(58) 评论(0) 推荐(0)
STL 算法 std::mem_fn

摘要:std::for_each(threads.begin(),threads.end(), std::mem_fn(&std::thread::join)); 1. 说明 2. 写用法 3.写样例 直接参考 cplusplus官网讲解:http://www.cplusplus.com/referenc 阅读全文
posted @ 2021-10-03 17:49 我是张洪铭我是熊博士 阅读(675) 评论(0) 推荐(0)
STL 算法 std::advance

摘要:std::advance(block_end,block_size); 1. 写说明 2. 写用法 3.写样例 直接参考 cplusplus官网讲解:http://www.cplusplus.com/reference/iterator/advance/ 我的理解: std::advance 第一个 阅读全文
posted @ 2021-10-03 17:45 我是张洪铭我是熊博士 阅读(3111) 评论(0) 推荐(0)
STL 算法 std::min

摘要:1 unsigned long const num_threads= 2 std::min(hardware_threads != 0 ? hardware_threads : 2, max_threads); 1. 写说明 2. 写用法 3.写样例 未完,待续.... 阅读全文
posted @ 2021-10-03 17:40 我是张洪铭我是熊博士 阅读(226) 评论(0) 推荐(0)
STL 算法 std::distance

摘要:unsigned long const length=std::distance(first,last); 1. 写说明 2. 写用法 3.写样例 未完,待续.... 阅读全文
posted @ 2021-10-03 17:36 我是张洪铭我是熊博士 阅读(456) 评论(0) 推荐(0)
STL 算法 std::accumulate

摘要:1. 写说明 2. 写用法 3.写样例 未完,待续.... 阅读全文
posted @ 2021-10-03 17:35 我是张洪铭我是熊博士 阅读(65) 评论(0) 推荐(0)

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3