mrdocs::ConstantTParam

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

NameDescription
TParamCommonBase<TParamKind::Constant>CRTP base that fixes the parameter kind.

Static Member Functions

NameDescription
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

NameDescription
Type Type of the non-type template parameter

Static Data Members

NameDescription
kind_id Static discriminator for the concrete parameter.