-
Notifications
You must be signed in to change notification settings - Fork 774
[flat.map.defn] [flat.multimap.defn] Exposition-only markup for "c" and "compare" #5914
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14702,15 +14702,15 @@ | |
const mapped_container_type& mapped_cont, const Allocator& a); | ||
|
||
explicit flat_map(const key_compare& comp) | ||
: c(), compare(comp) { } | ||
: \exposid{c}(), \exposid{compare}(comp) { } | ||
template<class Allocator> | ||
flat_map(const key_compare& comp, const Allocator& a); | ||
template<class Allocator> | ||
explicit flat_map(const Allocator& a); | ||
|
||
template<class InputIterator> | ||
flat_map(InputIterator first, InputIterator last, const key_compare& comp = key_compare()) | ||
: c(), compare(comp) { insert(first, last); } | ||
: \exposid{c}(), \exposid{compare}(comp) { insert(first, last); } | ||
template<class InputIterator, class Allocator> | ||
flat_map(InputIterator first, InputIterator last, | ||
const key_compare& comp, const Allocator& a); | ||
|
@@ -14731,7 +14731,7 @@ | |
template<class InputIterator> | ||
flat_map(sorted_unique_t s, InputIterator first, InputIterator last, | ||
const key_compare& comp = key_compare()) | ||
: c(), compare(comp) { insert(s, first, last); } | ||
: \exposid{c}(), \exposid{compare}(comp) { insert(s, first, last); } | ||
template<class InputIterator, class Allocator> | ||
flat_map(sorted_unique_t, InputIterator first, InputIterator last, | ||
const key_compare& comp, const Allocator& a); | ||
|
@@ -14895,8 +14895,8 @@ | |
{ x.swap(y); } | ||
|
||
private: | ||
containers c; // \expos | ||
key_compare compare; // \expos | ||
containers \exposid{c}; // \expos | ||
key_compare \exposid{compare}; // \expos | ||
|
||
struct key_equiv { // \expos | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think (How about changing to kebab-case and/or eliminating its ctor as aggregate initialization can do the right thing?) |
||
key_equiv(key_compare c) : comp(c) { } | ||
|
@@ -15843,7 +15843,7 @@ | |
const mapped_container_type& mapped_cont, const Allocator& a); | ||
|
||
explicit flat_multimap(const key_compare& comp) | ||
: c(), compare(comp) { } | ||
: \exposid{c}(), \exposid{compare}(comp) { } | ||
template<class Allocator> | ||
flat_multimap(const key_compare& comp, const Allocator& a); | ||
template<class Allocator> | ||
|
@@ -15852,7 +15852,7 @@ | |
template<class InputIterator> | ||
flat_multimap(InputIterator first, InputIterator last, | ||
const key_compare& comp = key_compare()) | ||
: c(), compare(comp) | ||
: \exposid{c}(), \exposid{compare}(comp) | ||
{ insert(first, last); } | ||
template<class InputIterator, class Allocator> | ||
flat_multimap(InputIterator first, InputIterator last, | ||
|
@@ -15874,7 +15874,7 @@ | |
template<class InputIterator> | ||
flat_multimap(sorted_equivalent_t s, InputIterator first, InputIterator last, | ||
const key_compare& comp = key_compare()) | ||
: c(), compare(comp) { insert(s, first, last); } | ||
: \exposid{c}(), \exposid{compare}(comp) { insert(s, first, last); } | ||
template<class InputIterator, class Allocator> | ||
flat_multimap(sorted_equivalent_t, InputIterator first, InputIterator last, | ||
const key_compare& comp, const Allocator& a); | ||
|
@@ -16008,8 +16008,8 @@ | |
{ x.swap(y); } | ||
|
||
private: | ||
containers c; // \expos | ||
key_compare compare; // \expos | ||
containers \exposid{c}; // \expos | ||
key_compare \exposid{compare}; // \expos | ||
}; | ||
|
||
template<class KeyContainer, class MappedContainer> | ||
|
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 was one thing I wasn't sure how to do markup-wise, so I left it alone / out-of-scope: Line 14978 has
where ideally the
c
should be expos-only but thekeys
shouldn't.Uh oh!
There was an error while loading. Please reload this page.
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 is what I meant with #5914 (comment). By convention, marking with
\exposid
in the class synopsis is not enough. All uses of those members throughout are marked with\exposid
.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 think you can just use