[stmt.block] (original) (raw)

8 Statements [stmt]

8.4 Compound statement or block [stmt.block]

1

#

A compound statement (also known as a block) groups a sequence of statements into a single statement.

compound-statement:
{ statement-seq label-seq }

statement-seq:
statement statement-seq

label-seq:
label label-seq

A label at the end of a compound-statementis treated as if it were followed by a null statement.

2

#

[Note 1:

A compound statement defines a block scope ([basic.scope]).

A declaration is a statement ([stmt.dcl]).

— _end note_]