Q:

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)

0

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)

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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.

 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now