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

Get C++ In a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.