Skip to content
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

Use \placeholder for alias templates in container deduction guides #1965

Closed
wants to merge 2 commits into from

Conversation

jwakely
Copy link
Member

@jwakely jwakely commented Mar 21, 2018

Rename the alias templates and style as placeholders:

iter_key_t -> iter-key-type
iter_val_t -> iter-mapped-type
iter_to_alloc_t -> iter-to-alloc-type

Add iter-value-type for use in sequence containers and sets.

Fixes #1523

@tkoeppe
Copy link
Contributor

tkoeppe commented Mar 21, 2018

That's very nice!

\begin{codeblock}
template<class InputIterator>
using @\placeholder{iter-value-type}@ =
typename iterator_traits<InputIterator>::value_type>; // \expos
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray > at the end.

@@ -5797,13 +5797,16 @@

\begin{codeblock}
template<class InputIterator>
using iter_key_t = remove_const_t<
using @\placeholder{iter-value-type}@ =
typename iterator_traits<InputIterator>::value_type>; // \expos
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed both of these, thanks.

@tkoeppe
Copy link
Contributor

tkoeppe commented Mar 30, 2018

I've stolen your commits and altered them.

(I adjusted the horizontal spacing, removing extraneous line breaks, harmonizing the comment column, etc.)

@tkoeppe tkoeppe closed this Mar 30, 2018
@jwakely jwakely deleted the issue-1523 branch July 6, 2018 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants