Skip to content

Commit 0027d16

Browse files
committed
---
yaml --- r: 346068 b: refs/heads/master c: 1f46e37 h: refs/heads/master
1 parent 3075a9c commit 0027d16

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: a2f5231158c41d8606e83de6636d2d476072a160
2+
refs/heads/master: 1f46e373338353cb2a07b31fbdd8d39d8de3153f
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/stdlib/public/SDK/CoreGraphics/CGFloat.swift.gyb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,21 @@ extension CGFloat : Hashable {
380380
public var hashValue: Int {
381381
return native.hashValue
382382
}
383+
384+
/// Hashes the essential components of this value by feeding them into the
385+
/// given hasher.
386+
///
387+
/// - Parameter hasher: The hasher to use when combining the components
388+
/// of this instance.
389+
@inlinable @_transparent
390+
public func hash(into hasher: inout Hasher) {
391+
hasher.combine(native)
392+
}
393+
394+
@inlinable @_transparent
395+
public func _rawHashValue(seed: Int) -> Int {
396+
return native._rawHashValue(seed: seed)
397+
}
383398
}
384399

385400
% for dst_ty in all_integer_types(word_bits):

0 commit comments

Comments
 (0)