A constant template parameter

Synopsis

Declared in <mrdocs/Metadata/TParam/ConstantTParam.hpp>

struct ConstantTParam final
    : TParamCommonBase<TParamKind::Constant>

Description

Before C++26, constant template parameters were called non‐type template parameter in the standard wording. The terminology was changed by P2841R6 / PR#7587.

Base Classes

Name

Description

TParamCommonBase<TParamKind::Constant>

CRTP base that fixes the parameter kind.

Static Member Functions

Name

Description

isConstant

True if the parameter is a non‐type parameter.

isTemplate

True if the parameter is a template template parameter.

isType

True if the parameter is a type parameter.

Data Members

Name

Description

Type

Type of the non‐type template parameter

Static Data Members

Name

Description

kind_id

Static discriminator for the concrete parameter.

Non-Member Functions