typealias AnyClass = AnyObject.Type
The protocol to which all class types implicitly conform.
When used as a concrete type, all known @objc
class
methods and
properties are available, as implicitly-unwrapped-optional methods
and properties respectively, on each instance of AnyClass
. For
example:
class C {
@objc class var cValue: Int { return 42 }
}
// If x has an @objc cValue: Int, return its value.
// Otherwise, return `nil`.
func getCValue(x: AnyClass) -> Int? {
return x.cValue // <===
}
See Also: AnyObject
typealias BooleanLiteralType = Bool
The default type for an otherwise-unconstrained Boolean literal.
typealias CChar = Int8
The C 'char' type.
This will be the same as either CSignedChar
(in the common
case) or CUnsignedChar
, depending on the platform.
typealias ExtendedGraphemeClusterType = String
The default type for an otherwise-unconstrained Unicode extended grapheme cluster literal.
typealias FloatLiteralType = Double
The default type for an otherwise-unconstrained floating point literal.
typealias StringLiteralType = String
The default type for an otherwise-unconstrained string literal.
The protocol to which all types implicitly conform.