美文网首页
(BOOLAN)STL 其它

(BOOLAN)STL 其它

作者: 坏水强 | 来源:发表于2017-12-25 02:21 被阅读0次

1.tuple :http://www.cplusplus.com/reference/tuple/

eg:tuple<string,int,float> t1("hello",1,1.34);auto t2=make_tuple(44,33,"what");get<1>(t1);//

tuple 的构造过程用到了自身的递归调用

type traits:模板类,http://en.cppreference.com/w/cpp/header/type_traits,在类模板中类型定义。

----------------------------------------------------------------------------------------------------------

moveable:是指针变动,但指针指向的元素内存没有发生变化。使用的前提是类型是moveable的。在构造函数中浅拷贝,使用&&。

相关文章

网友评论

      本文标题:(BOOLAN)STL 其它

      本文链接:https://www.haomeiwen.com/subject/amukgxtx.html