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
[flat.multiset.defn] Fix minor errors and inconsistencies #6260
Conversation
[flat.set.defn] and [flat.multiset.defn] are now formatted identically. Additionally removed erroenous template parameters in two deduction guides.
@jwakely, @CaseyCarter could you kindly take a look? |
-> flat_multiset<@\placeholder{iter-value-type}@<InputIterator>, @\placeholder{iter-value-type}@<InputIterator>, Compare>; | ||
-> flat_multiset<@\placeholder{iter-value-type}@<InputIterator>, Compare>; | ||
|
||
template<class InputIterator, class Compare = less<@\placeholder{iter-value-type}@<InputIterator>>> | ||
flat_multiset(sorted_equivalent_t, InputIterator, InputIterator, Compare = Compare()) | ||
-> flat_multiset<@\placeholder{iter-value-type}@<InputIterator>, @\placeholder{iter-value-type}@<InputIterator>, Compare>; | ||
-> flat_multiset<@\placeholder{iter-value-type}@<InputIterator>, Compare>; |
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.
This corrects (what to me is) obvious copy-pasta from flat_multimap
. I call it "editorial" despite that it's a borderline normative change.
@@ -17163,7 +17163,7 @@ | |||
const key_compare& comp = key_compare()) | |||
: @\exposid{c}@(std::move(cont)), @\exposid{compare}@(comp) { } | |||
template<class Allocator> | |||
flat_multiset(sorted_equivalent_t, const container_type&, const Allocator& a); | |||
flat_multiset(sorted_equivalent_t, const container_type& cont, const Allocator& a); |
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.
This agrees with the form of the redeclaration in [flat.multiset.cons]
, as is consistent with LWG style.
container_type @\exposid{c}@; // \expos | ||
key_compare @\exposid{compare}@; // \expos |
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 refuse to learn the editorial "rules" for comments, so someone else needs to sign off on these two (obivously editorial) lines.
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.
While the rules superficially only concern the source code column of the comment, there are subtleties about italic correction here, too, and you shall not be blamed for not participating in those deliberations :-)
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.
Looks like an improvement to me.
Thank you, both, and also @Saalvage for the PR! |
Applied as aa8a531, thanks! |
[flat.set.defn] and [flat.multiset.defn] are now formatted identically.
Additionally removed erroneous template parameters in two deduction guides (the
Key
was provided twice).CC: @tzlaine