# cxxFunctionScopedName

The scope of the function i.e. the declaration of the enclosing namespace/class/struct/union.

## Description

This element describes the declaration (qualified name lookup) of the enclosing namespace/class/struct/union. For global functions this element is empty.

See ISO/IEC 14882:2003(E) Section 3.3 Declarative regions and scopes [basic.scope]

## Example

Given this code:

    namespace N {
      class C {
        struct D {
          int SomeFunction();
        };
      };
    };

`SomeFunction` would have a scoped name element:

    <cxxFunctionScopedName>N::C::D</cxxFunctionScopedName>

## Contained by

cxxFunctionDefinition

## Contains

## Content Model

No content.

## Inheritance

topic/keyword reference/keyword apiRef/apiItemName apiOperation/apiItemName cxxFunction/cxxFunctionScopedName

Parent topic: cxxFunction module