var rgbaArray = [RGBA<UInt8>(red: 255, green: 127, blue: 0, alpha: 255)] func constF(_ p: UnsafePointer<RGBA<UInt8>>) {} func mutableF(_ p: UnsafeMutablePointer<RGBA<UInt8>> ) {} constF(rgbaArray) mutableF(&rgbaArray)
&
をつけるfunc constF(_ p: UnsafePointer<RGBA<UInt8>>) {} // 心の目 func constF(_ p: shared RGBA<UInt8>) {} func mutableF(_ p: UnsafeMutablePointer<RGBA<UInt8>> ) {} // 心の目 func constF(_ p: inout RGBA<UInt8>) {}
(edited)