[stdlib] Propagate ForwardIndexType docs to models

200 undocumented public APIs remain in core

Swift SVN r22222
This commit is contained in:
Dave Abrahams
2014-09-23 19:20:48 +00:00
parent b2d0ef6fef
commit c38e3201b2
11 changed files with 39 additions and 3 deletions

View File

@@ -93,6 +93,9 @@ extension String {
_sanityCheck(_coreIndex <= _core.count)
}
/// Returns the next consecutive value after `self`.
///
/// Requires: the next value is representable.
public func successor() -> Index {
let newBuffer0 = (_buffer >> 8) | (
0xFF << numericCast((sizeofValue(_buffer) &- 1) &* 8)