讀書筆記之:C++ STL 開發技術導引-2

來源:互聯網
上載者:User

第3篇 C++ STL 容器技術

SGI STL代碼首頁:http://www.sgi.com/tech/stl/

 

第6章 vector向量容器


stl_vector.h原始碼

vector常用的函數

http://www.cplusplus.com/reference/stl/vector/


第7章 deque雙端隊列容器


deque容器使用

http://www.cplusplus.com/reference/stl/deque/


deque技術原理


第8章 list雙向鏈表容器

list容器


http://www.cplusplus.com/reference/stl/list/


 

list技術原理


第9章 slist單向鏈表容器


http://www.sgi.com/tech/stl/Slist.html

 

第10章 bit_vector位向量容器

 

應該是現在C++標準庫中的bitset容器

http://www.cplusplus.com/reference/stl/bitset/


第11章 set集合

set容器


set技術原理


http://www.cplusplus.com/reference/stl/set/


 

第12章 multiset多重集合容器


http://www.cplusplus.com/reference/stl/multiset/


multiset技術原理


第13章 map映射容器

map容器


http://www.cplusplus.com/reference/stl/map/


 

第14章 multimap多重容器

multimap容器


http://www.cplusplus.com/reference/stl/multimap/


 

第15章 hash_set雜湊集合容器


SGI hash_set的實現:http://www.sgi.com/tech/stl/hash_set.html

hash_set技術原理


hash函數


hash_set是在hash_table的基礎上實現的


hash_set應用基礎

1. 建構函式


2. 插入元素


3. 元素刪除


4. 元素遍曆訪問


5. 元素搜尋


6. 其他函數


hash_set總結


第16章 hash_map 雜湊映射容器


hash_map的實現原理


hash_map的SGI實現源碼:http://www.sgi.com/tech/stl/hash_map.html

hash_map建構函式


hash_map元素的插入


元素的刪除


元素的遍曆訪問



元素的搜尋


hash_map中的其他函數


hash_map總結

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.