標準容器的復雜性保證是什么?顯然;-)標準集裝箱提供某種形式的擔保。不同類型的集裝箱之間究竟有什么不同的保證?從SGI頁面(關于STL)我想出了這個辦法:Container Types:================Container: Forward Container Reverse Container Random Access Container Sequence Front Insert Sequence Back Insert Sequence Associative Container Simple Associative Container Pair Associative Container Sorted Associative Container Multiple Associative ContainerContainer Types mapped to Standard Containers=============================================std::vector: Sequence Back Sequence Forward/Reverse/Random Containerstd::deque: Sequence Front/Back Sequence Forward/Reverse/Random Containerstd::list: Sequence Front/Back Sequence Forward/Reverse Containerstd::set: Sorted/Simple/Unique Associative Container Forward Containerstd::map: Sorted/Pair/Unique Associative Container Forward Containerstd::multiset: Sorted/Simple/Multiple Associative Container Forward Containerstd::multimap: Sorted/Pair/Multiple Associative Container Forward ContainerContainer Guarantees:
- 3 回答
- 0 關注
- 437 瀏覽
添加回答
舉報
0/150
提交
取消
