CompilerTech

导航

随笔分类 -  C++ 11

C++ 11, LEARNING, NEW FEATURE, ETC,.
C++11引用临时变量的终极解析
摘要:工作中遇到一个引用临时变量的问题,经过两天的学习,私以为:不仅弄明白了这个问题,还有些自己的独到见解。这里使用一个简单的例子来把自己的学习过程和理解献给大家,如果有什么问题请不吝指正。*************************Code*************************clas... 阅读全文

posted @ 2015-08-25 15:53 compilerTech 阅读(6160) 评论(3) 推荐(4)

reverse iterator
摘要:Problem 1:vector coll = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };vector::const_iterator pos = find (coll.cbegin(), coll.cend(),5);cout ::const_reverse_iterator r... 阅读全文

posted @ 2014-09-11 17:07 compilerTech 阅读(631) 评论(0) 推荐(0)

Range-Based for Loops
摘要:for ( decl : coll ){ statement}where decl is the declaration of each element of the passed collection coll and for which the statements specified are... 阅读全文

posted @ 2014-06-13 11:01 compilerTech 阅读(376) 评论(0) 推荐(0)

the philosophy behind of the design of the STL
摘要:The concept of STL is based on a separation of data and operations. The data is managed by container classes, and the operations are defined by config... 阅读全文

posted @ 2014-05-23 11:46 compilerTech 阅读(728) 评论(0) 推荐(0)