在typedef的cppreference页面中,有一个例子:
// typedef can be used anywhere in the decl-specifier-seq
long unsigned typedef int long ullong;
Run Code Online (Sandbox Code Playgroud)
我无法弄清楚这是什么意思....请帮忙吗?
它意味着同样的事情
typedef unsigned long long int ullong;
Run Code Online (Sandbox Code Playgroud)
五个字typedef,unsigned,long,long,和int是DECL说明符 S上形成一个单一的DECL说明符-SEQ,和(有一些可能的边缘的情况下的例外)a的含义或有效性DECL说明符-SEQ不依赖的量级DECL-符.
注意,提供一些额外的例子int static x;意味着同样的事情static int x;,并且void virtual f();意味着相同的事情virtual void f();.