next up previous
suivant: Preprocessing directives monter: Grammaire de C++ précédent: Templates

Exception handling


try-block:  

try compound-statement handler-seq

function-try-block:
try ctor-initializer$_{\mathsf{opt}}$ function-body handler-seq

handler-seq:
handler handler-seq$_{\mathsf{opt}}$

handler:
catch ( exception-declaration ) compound-statement

exception-declaration:
type-specifier-seq declarator
type-specifier-seq abstract-declarator
type-specifier-seq
...

throw-expression:
throw assignment-expression$_{\mathsf{opt}}$

exception-specification:
throw ( type-id-list$_{\mathsf{opt}}$ )
type-id-list:
type-id
type-id-list , type-id



R Lalement
1999-09-16