I need to store an indeterminable number of triangles in a vector, therefore, it would be something like:
std::vector<Point[3]>
But that is not valid C++98. What are other solutions that do not involve a triangle struct?
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.
structpair<pair<Point,Point>,Point>typestd::tuple. If there are more of such cases, you may implement your owntupleclass taking 3 or more types.