New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[basic.string] State class invariants about [data(), data() + size()] in the introduction. #1879
Conversation
source/strings.tex
Outdated
@@ -1202,8 +1204,7 @@ | |||
|
|||
\pnum | |||
\postconditions | |||
\tcode{data()} is a non-null pointer that is copyable and can have \tcode{0} added | |||
to it, \tcode{size()} is \tcode{0}, and \tcode{capacity()} is an unspecified value. | |||
\tcode{capacity()} is an unspecified value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From where do we know that size() == 0
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, yes, that should not have been removed. Fixed.
Looks like an improvement to me. |
I'm adding "is true" to " |
… in the introduction.
Sent to -lib reflector for feedback. |
LWG reflector discussion is in favour of this change. |
No description provided.