extensionの文で構造体VectorのT型はFloatingPointTypeに批准している必要があるとなっているのですが、FloatingPointTypeとはどういう意味を指しているのでしょうか?
struct Vector<T> {
var x, y:T
}
extension Vector where T: FloatingPointType {
init(x:T, y:T) {
self.x = x; self.y = y
}
}
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/03/07 11:00