Skip to Main Content
C++ In a Nutshell
book

C++ In a Nutshell

by Ray Lischner
May 2003
Intermediate to advanced content levelIntermediate to advanced
808 pages
32h 24m
English
O'Reilly Media, Inc.
Content preview from C++ In a Nutshell

Name

identifier — Name of an entity

Synopsis

               id-expression ::= unqualified-id | qualified-id
               unqualified-id ::= identifier | operator-function-id | conversion-function-id | 
    ~ class-name | template-id
               qualified-id ::= [::] nested-name :: [template] unqualified-id | :: identifier | 
    :: operator-function-id | :: template-id
               nested-name ::= class-or-namespace-name | 
    nested-name [:: class-or-namespace-name] | 
    nested-name [:: template class-name]
class-or-namespace-name ::= class-name | namespace-name
               class-name ::= identifier | template-id
               namespace-name ::= identifier
            

An entity name can be a simple identifier, an operator name, or a qualified name. See Chapter 1 for the rules that apply to valid identifiers. See Chapter 5 for more information on overloaded operators. See operator for the rules that apply to operator-function-id and conversion-function-id.

See Also

class, declarator, namespace, operator, Chapter 1, Chapter 2

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++ High Performance

C++ High Performance

Viktor Sehr, Björn Andrist
Optimized C++

Optimized C++

Kurt Guntheroth
Mastering C++ Programming

Mastering C++ Programming

Jeganathan Swaminathan

Publisher Resources

ISBN: 059600298XSupplemental ContentErrata Page