在C++裡面的函式中,有一些內建好用資料結構,這些資料結構都是用一種叫型別模板(template)的東西去包裝,而這些資料結構包裝起來就變成了標準模板庫(standard template library)
那STL裡面有什麼呢?
首先我們先來講解STL的三大容器 vector、deque跟list
vector
vector介紹
原生C++的陣列是使用一連串的記憶體位置來儲存資料,但是當我們宣告完陣列大小後就沒辦法再修改了。
@bobotou-algorithm
Public team
Joined on Apr 15, 2021
Are you sure to leave this team?
Once you delete your team, all team notes will be deleted and cannot be recovered. Please ensure you've exported or transfered these notes.
Enter team name before deleting it:
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up