STL未整理.doc

细说容器中的型别和成员: 下面是返回值或参数的 型别: container::value_type: 1. 对于set和multiset: 是常数 2. 在map和multimap:pairconst key_type, value_type container::reference: 元素的引用型别 格式: container::value_type container::const_reference: 元素的引用型别 格式: const container::value_type container::iterator container::const_iterator container::reverse_iterator container:: const_reverse_iterator container::size_type 没有符号,用于定义容器的大小。 container::difference_type 有符号,用于定义距离。 container::key_type 对于set: 就是value_type container::mappend_type 定义关联式容器中的元素的value的型别 container::key_compare 定义关联式容器中的 “比较准则”的型别 container::value_compare

文档评论(0)

1亿VIP精品文档

相关文档