C++ Logo

std-discussion

Advanced search

Is a template parameter a typedef name

From: Sean Mayard <seanmayard_at_[hidden]>
Date: Mon, 5 Feb 2024 17:33:31 +0530
Hi I've a doubt in typedef name. In particular, say we have a class
template C as shown below. My question is `T` in the following example a
typedef-name? I tried reading dcl.typedef
<https://eel.is/c++draft/dcl.typedef#nt:typedef-name> but I couldn't
pinpoint if that make T typedef-name.

template<typename T> struct C{ //is T a typedef-name here?};

Can someone tell me which clause makes T a typedef-name?

Regards,

Received on 2024-02-05 12:03:44