Info for using declarations.

Synopsis

Declared in <mrdocs/Metadata/Symbol/Using.hpp>

struct UsingSymbol final
    : SymbolCommonBase<SymbolKind::Using>

Description

For instance, the following code:

using A::f; // where f is a function in namespace A

would be represented by a UsingSymbol object.

Using‐declarations can be used to introduce namespace members into other namespaces and block scopes, or to introduce base class members into derived class definitions, or to introduce enumerators into namespaces, block, and class scopes.

Base Classes

Name

Description

SymbolCommonBase<SymbolKind::Using>

Base class for providing variant discriminator functions.

Member Functions

Name

Description

UsingSymbol [constructor]

Create a using‐declaration symbol bound to an ID.

Static Member Functions

Data Members

Name

Description

Class

The using declaration.

IntroducedName

The symbol being introduced.

ShadowDeclarations

The shadow declarations.

Static Data Members

Name

kind_id

Non-Member Functions

Name

Description

allMembers

Access declarations introduced by this using‐declaration.

canMerge

Check whether two symbols may be merged.

getPrimaryLocation

Determine a location to use when none is explicitly chosen.

Created with MrDocs