array
bitset
deque
forward_list
list
map
multimap
multiset
queue
set
stack
unordered_map
unordered_multimap
unordered_set
unordered_multiset
vector
fstream
iomanip
ios
iosfwd
iostream
istream
ostream
sstream
streambuf
charconv
codecvt
regex
string
string_view
algorithm
any
chrono
execution
filesystem
functional
initializer_list
iterator
locale
optional
system_error
|tuple
type_index
typeinfo
type_traits
utility
valarray
variant
atomic
condition_variable
future
mutex
shared_mutex
thread
complex
limits
numeric
random
ratio
exception
stdexcept
new
memory
memory_resource
scoped_allocator
cassert
ccomplex
cctype
cerrno
cfenv
cfloat
cinttypes
ciso646
climits
clocale
cmath
csetjmp
csignal
cstdalign
cstdarg
cstdbool
cstddef
cstdint
cstdio
cstdlib
cstring
ctime
ctgmath
cuchar
cwchar
cwctype
Vector 是C++標準程式庫中的一个類,通看做是會自動擴展容量的陣逝,以循序(Sequential)的方式維護變數集合。
Vector的特色有伨隨機存取,佇集合尾端增刪元素真緊,毋過咧集合中央增刪元素較費時。
Vector是C++標準程式庫中的濟濟容器之一。
Vector以模板方式實現,會當保存任意分類的變數,包括使用者自定義的資料樣式,比論:伊會當是囥整數(int)樣式的vector、嘛會當是囥字串(string)樣式的vector、或者囥使用者自定類別(user-defined class)的vector。