Updated description of *_view to reference span.

This commit is contained in:
Neil MacIntosh 2015-11-04 14:17:24 -08:00
parent af48243d0a
commit 5bb3b3f732

View File

@ -12717,7 +12717,7 @@ If something is not supposed to be `nullptr`, say so:
* `string_span` // `span<char>` * `string_span` // `span<char>`
* `cstring_span` // `span<const char>` * `cstring_span` // `span<const char>`
A `*_view<T>` refers to zero or more mutable `T`s unless `T` is a `const` type. A `span<T>` refers to zero or more mutable `T`s unless `T` is a `const` type.
"Pointer arithmetic" is best done within `span`s. "Pointer arithmetic" is best done within `span`s.
A `char*` that points to something that is not a C-style string (e.g., a pointer into an input buffer) should be represented by a `span`. A `char*` that points to something that is not a C-style string (e.g., a pointer into an input buffer) should be represented by a `span`.