mrdocs::Type

A possibly qualified type.

Synopsis

Declared in <mrdocs/Metadata/Type/TypeBase.hpp>

struct Type;

Description

This class represents a type that may have qualifiers (e.g. const, volatile).

This base class is used to store the kind of type. Derived classes are used to store the type information according to the kind.

Member Functions

Name

Description

asType

namedSymbol

Return the symbol named by this type.

operator<=>

Three‐way comparison operator

Data Members

Name

Description

Constraints

The constraints associated with the type

IsConst

The const qualifier

IsPackExpansion

Whether this is the pattern of a pack expansion.

IsVolatile

The volatile qualifier

Kind

The kind of Type this is

Protected Member Functions

Name

Description

Type [constructor]

Construct from TypeKind

~Type [destructor] [virtual]

Destructor

Non-Member Functions

Name

Description

innerType

Return the inner type.

innerType

Return the inner type.

innerTypePtr

Return the inner type.

innerTypePtr

Return the inner type.

Derived Classes

Name Description

TypeCommonBase

Created with MrDocs