Assuming c1 and c2 are containers, what (if any) constraints does the following usage place on the types of c1 and c2? if (c1 < c2)
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:9| Question number:17
All Answers
total answers (1)
The constraints are:
1. the lefthand and righthand operands must have the same container type and element type.
2. the element of the container must support the
`<`
operator.