boost之bimap(3)
来源:互联网 发布:c语言打印文字图形 编辑:程序博客网 时间:2024/06/11 15:47
bimap
#include <iostream>#include <boost/typeof/typeof.hpp>#include <boost/bimap.hpp>#include <boost/assign.hpp>using namespace std;using namespace boost;using namespace boost::assign;int main(){ typedef bimap<int, string>bm_t; bm_t bm; cout << "使用left_value_type和right_value_type插入" << endl; bm.left.insert(bm_t::left_value_type(1,"one")); bm.right.insert(bm_t::right_value_type("two",2)); cout << "使用make_pair插入" << endl; bm.left.insert(make_pair(3,"three")); bm.right.insert(make_pair("four",4)); //////遍历bm for (BOOST_AUTO(pos, bm.begin()); pos != bm.end(); ++pos) { cout << pos->left << "----" << pos->right << endl; } system("pause"); return 0;}
0 0
- boost之bimap(3)
- boost之bimap(1)
- boost之bimap(2)
- Boost::bimap
- boost::bimap
- boost::bimap详解
- boost bimap简介
- boost bimap 学习笔记
- boost bimap 学习笔记
- Boost::bimap的简单使用
- Guava学习之BiMap
- guava之BiMap
- Guava使用之BiMap
- boost中bimap库使用引例
- 双向映射boost::bimap的使用
- BiMap
- BiMap
- Google Guava学习之BiMap
- 使用Java代码编写QuickHit小游戏
- NE40添加语音地址段
- Codeforces Round #387 (Div. 2)
- struct的内存结构
- 局部图像特征描述总结
- boost之bimap(3)
- Redis过期策略
- 数学狂想曲(一)——搞笑图片的数学原理, 欧拉公式, 傅里叶变换
- MFC贴图
- 55. spring boot 服务配置和部署【从零开始学Spring Boot】
- 2017年计划
- Levenberg-Marquardt算法浅谈
- 加载器
- BZOJ 1251 Splay维护序列