如何为不同类型做多个`typedef`?

时间:2016-06-16 07:39:42

标签: c++

有没有办法为不同类型做多个typedef

示例,而不是这样做

typedef unsigned char UBYTE;
typedef signed char SBYTE;
typedef unsigned short int UWORD;
typedef signed short int SWORD;

我可以做这样的事情

typedef {
    unsigned char UBYTE;
    signed char SBYTE;
    unsigned short int UWORD;
    signed short int SWORD;
}

0 个答案:

没有答案