Function 関数

protocol_copyProtocolList(_:_:)

Returns an array of the protocols adopted by a protocol. あるプロトコルによって採用されたプロトコルそれらからなるある配列を返します。

Declaration 宣言

func protocol_copyProtocolList(_ proto: Protocol, 
                             _ outCount: UnsafeMutablePointer<UInt32>?) -> AutoreleasingUnsafeMutablePointer<Protocol>?

Parameters パラメータ

proto

A protocol. あるプロトコル。

outCount

Upon return, contains the number of elements in the returned array.

Return Value 戻り値

A C array of protocols adopted by proto. The array contains *outCount pointers followed by a NULL terminator. You must free the array with free().

If the protocol declares no properties, NULL is returned and *outCount is 0.

See Also 参照

Working with Protocols プロトコルを扱う