I am not really sure what this line of code does.
vector<vector<A>> someth;
Does this mean that creates a vector with elements vectors with objects of class A?
Can please someone explain this?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes.
Also note that your syntax is not supported before C++11:
is the pre-C++11 syntax. Before that,
>>was treated as the bit-shift operator, so you’d get a compiler error on some compilers.This actually creates an empty
vectorthat can contain objects of typevector<A>.