In Swift, typedef is called typealias:

It is used to create an alias name for another data type.

The syntax of the typedef declaration is:[2]

typedef type declaration;
typedef int length;

 

In Swift, typedef is called typealias:

typealias PairOfInts = (Int, Int)


https://en.wikipedia.org/wiki/Typedef



posted @ 2018-06-11 18:34  zzfx  阅读(129)  评论(0编辑  收藏  举报