mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
I.12: use a const string as mentioned in the text
This commit is contained in:
@@ -1928,7 +1928,7 @@ The assumption that the pointer to `char` pointed to a C-style string (a zero-te
|
|||||||
|
|
||||||
// we can assume that p cannot be nullptr
|
// we can assume that p cannot be nullptr
|
||||||
// we can assume that p points to a zero-terminated array of characters
|
// we can assume that p points to a zero-terminated array of characters
|
||||||
int length(not_null<zstring> p);
|
int length(not_null<czstring> p);
|
||||||
|
|
||||||
Note: `length()` is, of course, `std::strlen()` in disguise.
|
Note: `length()` is, of course, `std::strlen()` in disguise.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user