L11_A
Integer vector 的 private member
(Private members of integer vectors)
Integer vector 的 constructors
(Constructors for integer vector)
- Default constructor
- Copy constructor
- Initializer list
顯示integer vector
(Show integer vector)
Destructor for integer vector
L11_B
Integer vector 的運算子
(Operators for integer vector)
L11_C
在vector最後加入新資料 : push_back()
(Expand the size of vector : push_back())
重新定義顯示用的Operator <<
(Define Operator << to cout vectors)
L11_D
與rvalue reference有關的兩個member functions : move
constructor & move assignment
constructor & move assignment
(Member functions using rvalue reference : move
constructor & move assignment)
constructor & move assignment)