2013年5月28日

C++ Primer 读书笔记 - 第十章

摘要: 1. map和set中的key是唯一的,multimap和multiset中的key可以出现多次。2. Whenever we use an associative container, its keys have not only a type, but also an associated comparsion function.3. The value_type is a pair and that we can chagne the value but not the key member of that pair.4. 用下标插入元素时,内部操作是这样的: - 找key,找不到 .. 阅读全文

posted @ 2013-05-28 09:23 NULL00 阅读(520) 评论(0) 推荐(0) 编辑

C++ Primer 读书笔记 - 第九章

摘要: 1. Two constraints that element types must meet: - The element type must support assignment. - We must be able to copy objects of the element type. Soreferences, IO library types, auto_ptr typeare not permitted.2. Only vector and deque support iterator arithmetic and the use of relational operato... 阅读全文

posted @ 2013-05-28 02:41 NULL00 阅读(482) 评论(1) 推荐(0) 编辑

导航