会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
瑶海沙丘魔女
博客园
首页
新随笔
联系
订阅
管理
2021年10月18日
初学者·面试中的lambda(为prioriy_queue和sort写compare)
摘要: 这里贴下代码: void helper() { auto compare = [](int a, int b) { return a < b; }; vector<int> A = { 2, 3, 5, 6, 9, 1, 20 }; priority_queue<int, vector<int>,
阅读全文
posted @ 2021-10-18 07:39 瑶海沙丘魔女
阅读(76)
评论(0)
推荐(0)
公告