|
|
|
|
|
|
|
|
1 2 3 2 3 4 |
|
|
|
|
|
|
|
|
Consider that I have created the following object:
|
|
|
std::vector<int> integers;, the Vec is an empty vector that contains no elements.std::vector does have constructors that help you initialize the vector in multiple ways. |
|
Myclass elements.std::vector<int> and std::vector<Myclass> is the type of element.Myclass obj ;,