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
Exposition-only alias templates for associative container deduction guides #1523
Comments
If we do this, the new |
Editorial meeting consensus: Yes, we want more exposition-only typedef in these cases. The name should be italics and have hyphens and remove _t. Suggest -type. |
We should also change the presentation to e.g. iter-mapped-type so it's clearly not a real type, but an exposition only name. |
…plates Also rename iter_val_t to iter-mapped-type and then add iter-value-type for value_type. Fixes cplusplus#1523
…plates Also rename iter_val_t to iter-mapped-type and then add iter-value-type for value_type. Fixes cplusplus#1523
…plates Also rename iter_val_t to iter-mapped-type and then add iter-value-type for value_type. Fixes cplusplus#1523
(This applies to the changes in https://github.com/cplusplus/draft/tree/motions-2017-03-lwg-19.)
We have
iter_key_t
anditer_val_t
for thekey_type
andmapped_type
, which are only applicable to maps. We could renameiter_val_t
toiter_mapped_t
and then define another alias template with the nameiter_val_t
to be the iterator'svalue_type
. That would allow it to be used in the deduction guides for sets, as well as in theiter_key_t
anditer_mapped_t
types.The text was updated successfully, but these errors were encountered: