mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Closes #1445
This commit is contained in:
parent
a255fe23e0
commit
8eea7cef63
|
@ -3308,6 +3308,8 @@ Passing a `span` object as an argument is exactly as efficient as passing a pair
|
|||
C-style strings are ubiquitous. They are defined by convention: zero-terminated arrays of characters.
|
||||
We must distinguish C-style strings from a pointer to a single character or an old-fashioned pointer to an array of characters.
|
||||
|
||||
If you don't need null termination, use `string_view`.
|
||||
|
||||
##### Example
|
||||
|
||||
Consider:
|
||||
|
|
Loading…
Reference in New Issue
Block a user