mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Updated description of *_view to reference span.
This commit is contained in:
parent
af48243d0a
commit
5bb3b3f732
|
@ -12717,7 +12717,7 @@ If something is not supposed to be `nullptr`, say so:
|
|||
* `string_span` // `span<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.
|
||||
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`.
|
||||
|
|
Loading…
Reference in New Issue
Block a user