Revert "stdlib: Remove dead semantic Array._setElement function"

This reverts r22468. Because it breaks the build.

Swift SVN r22469
This commit is contained in:
Arnold Schwaighofer
2014-10-02 18:46:24 +00:00
parent cfd4a0902d
commit 2bd116c20b
4 changed files with 26 additions and 10 deletions

View File

@@ -273,6 +273,12 @@ public struct ${Self}<T> : MutableCollectionType, Sliceable {
func _getElement(index: Int) -> Element {
return _buffer[index]
}
@semantics("array.set_element")
mutating func _setElement(
index: Int, newValue: Element
) {
_buffer[index] = newValue
}
@semantics("array.get_element_address")
func _getElementAddress(index: Int) -> UnsafeMutablePointer<Element> {