stl中的tuple(tie)
来源:互联网 发布:淘宝货源外国 编辑:程序博客网 时间:2024/04/30 10:20
看的C++标准库(第二版)
书中关于tie()介绍看不懂,不知道这玩意到底能干啥,自己试了一波
tuple <int, float, string> t(55, 22.2, "hello");
int i,i1;float f,f1;
string s,s1;
make_tuple(ref(i), ref(f), ref(s)) = t;
cout << "i = " << i << endl;
cout << "f = " << f << endl;
cout << "s = " << s << endl;
tie(i1, f1, s1) = t;
cout << "i1 = " << i1 << endl;
cout << "f1 = " << f1 << endl;
cout << "s1 = " << s1 << endl;
这就是说的提取?
0 0
- stl中的tuple(tie)
- Tuple and Tie
- Tie
- tie
- c++ tr1和Boost中,tuple、tie的用法
- C++STL中的tuple 与 pair (piecewise construction)
- STL之tuple
- Python中的tuple
- c++中的tuple详解
- Python中的tuple
- Python中的tuple
- stl::map,stl::multimap,boost::tuple使用简介
- python中的list和tuple
- Swift中的元组(Tuple)
- Boost中的容器boost::tuple
- Scala中的Map和Tuple
- Python中的List和tuple
- 4.0新特性中的Tuple
- 洛谷【P1692】——部落卫队
- tcp 的一些问题
- poj2482 Stars in Your Window(成段更新+扫描线)
- microstation level2 0507
- iOS 属性声明在@implementation里与extension里的区别
- stl中的tuple(tie)
- Simple IOC 容器实现-基于注解
- BZOJ 3514 Codechef MARCH14 GERALD07加强版
- Excel错误“不能将对象移到工作表外”解决方法
- Android API之android.widget.Filterable
- linux fedora23 相关操作
- 个人对Spring @Scope("prototype")的一些理解
- 【C程序设计语言(第二版)学习】单词计数 方法
- TCP建立连接需要三步握手的原因