{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

C++编程(F) - C(15 17 Beijing University of Posts...

Info icon This preview shows pages 1–13. Sign up to view the full content.

View Full Document Right Arrow Icon
C++ (15) 北京Ⴏ电大学电信工程学ჽ
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Beijing University of Posts & Telecommunications Beijing University of Posts & Telecommunications [email protected] [email protected] 17 ᅣ 标ሙ容器 标ሙ容器 序列 序列适配器 关联容器 拟容器 定ၬ新容器 ᇑ告
Image of page 2
Beijing University of Posts & Telecommunications Beijing University of Posts & Telecommunications [email protected] [email protected] 17.1 ሙ容器 标ሙ库定ၬ了两类容器:序列和关联容器 序列都很象 vector ,除了ህ门ᆷ明的情况ᆭ 外,Ⴕ关 vector 所论及的成ჴ类型和函数都 可ၛ对任何其他容器使Ⴈ,并产生同ဢ效果 关联容器提供了基Ⴟ关键码访问ჭ素的功能
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Beijing University of Posts & Telecommunications Beijing University of Posts & Telecommunications [email protected] [email protected] 17.1.1 ቔሸ述 本节列出标ሙ容器的公共的或ᆀ几乎公共的成ჴ
Image of page 4
Beijing University of Posts & Telecommunications Beijing University of Posts & Telecommunications [email protected] [email protected] ቔሸ述 容器可ၛ看成是按ᅶ该容器的 iterator 所定ၬ的顺序形 成的序列,或ᆀ按反向顺序形成的序列,对Ⴟ关联容 器,ᆃ个顺序ᄵ基Ⴟ容器的比较ሙᄵ ( 默认为 <)
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Beijing University of Posts & Telecommunications Beijing University of Posts & Telecommunications [email protected] [email protected] ቔሸ述 向量和双端队列提供了对它们的ჭ素序列ᇏ后端ჭ素的 Ⴕ效操ቔ,表和双端队列还对它们的开始ჭ素提供了等 价的操ቔ 各ᇕ容 器提供 如下的 表操ቔ
Image of page 6