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
[unord.req], [fs.path.io] Fix "Effects: Equivalent to" styles #1806
[unord.req], [fs.path.io] Fix "Effects: Equivalent to" styles #1806
Conversation
272db15
to
fd79439
Compare
This change overlaps with my #1815. We should pick one, but not both. |
source/containers.tex
Outdated
@@ -2522,7 +2522,7 @@ | |||
& \tcode{void} | |||
& \requires\ \tcode{value_type} shall be \tcode{EmplaceConstructible} into \tcode{X} from \tcode{*i}.\br | |||
\requires \tcode{i} and \tcode{j} are not iterators in \tcode{a}. | |||
Equivalent to \tcode{a.insert(t)} for each element in \tcode{[i,j)}.% | |||
\effects\ Equivalent to \tcode{a.insert(t)} for each element in \tcode{[i,j)}.% | |||
\indextext{unordered associative containers!\idxcode{insert}}% |
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.
I'd prefer leaving container requirements tables alone; they need a serious overhaul anyway, and it's unclear whether \effects and friends should or should not appear there.
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.
That's true, but for the time being, I think this change improves local consistency, so I don't mind it.
Well, in other places, #1815 has more changes, because it also folds |
Please rebase. |
fd79439
to
a2a78ee
Compare
Done. |
source/containers.tex
Outdated
@@ -2509,7 +2509,7 @@ | |||
& \requires\ If \tcode{t} is a non-const rvalue expression, \tcode{value_type} shall be | |||
\tcode{MoveInsertable} into \tcode{X}; otherwise, \tcode{value_type} shall be | |||
\tcode{CopyInsertable} into \tcode{X}.\br | |||
\effects\ Equivalent to a.insert(t). Return value is an iterator pointing | |||
\effects\ Equivalent to \tcode{a.insert(t)}. Return value is an iterator pointing |
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.
Please remove the trailing backslashes after \effects
etc., as they are not needed.
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.
There are many occurrences of this for many elements in many sources. Is it okay to make a separate PR for that?
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.
No, leave the existing document alone. It's just that since you're already touching this part, you might as well clean it up, and I don't want you to introduce new cases of this (in the other change). But don't bother changing other existing instances.
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.
Done.
d84fcb4
to
9becee6
Compare
source/containers.tex
Outdated
@@ -2522,7 +2522,7 @@ | |||
& \tcode{void} | |||
& \requires\ \tcode{value_type} shall be \tcode{EmplaceConstructible} into \tcode{X} from \tcode{*i}.\br | |||
\requires \tcode{i} and \tcode{j} are not iterators in \tcode{a}. | |||
Equivalent to \tcode{a.insert(t)} for each element in \tcode{[i,j)}.% | |||
\effects Equivalent to \tcode{a.insert(t)} for each element in \tcode{[i,j)}.% |
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.
Wait, did you test this? You'll probably need a manual line break of sorts 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.
No, I didn't. Guess I'll setup a proper latex editing environment with live rendering. Fixed.
9becee6
to
5edb5a6
Compare
Some other places that might require change (wording relative to N4700):