First page Back Continue Last page Graphics
vector member functions cont.
c1 = c2
- Assigns all elements of c2 to c1
assign(n, elem)
- Assigns n copies of element elem.
assign(beg, end)
- Assigns the elements of the range [beg,end).
c1.swap(c2)
- Swaps the data of c1 and c2.