...

/

Quiz: Concepts and Constraints

Quiz: Concepts and Constraints

Assess your knowledge gained in this section by attempting the quiz below.

We'll cover the following...
Technical Quiz
1.

What is the difference between a requires clause and a requires expression?

A.

A requires clause specifies template parameters requires (parameter-list), and a requires expression defines the body of a function { requirement-seq }.

B.

A requires clause defines the body of a constraint { requirement-seq }, and requires expression specifies requirement parameters requires (parameter-list).

C.

A requires clause defines the constraints on the template parameters.

requires requirement

A requires expression can contain a sequence of requirements and uses curly branches, {}.

requires { requirement-seq }
D.

A requires clause can contain a sequence of requirements and uses curly branches, {}.

requires { requirement-seq }

A requires expression defines the constraints on the template parameters.

requires requirement

1 / 4
...