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

coroutine_traits is not in the index #6856

Closed
t3nsor opened this issue Mar 14, 2024 · 2 comments · Fixed by #6859
Closed

coroutine_traits is not in the index #6856

t3nsor opened this issue Mar 14, 2024 · 2 comments · Fixed by #6859

Comments

@t3nsor
Copy link
Contributor

t3nsor commented Mar 14, 2024

In the index of library names, coroutine_handle is follwed by cos, with no entry for coroutine_traits.

@jensmaurer
Copy link
Member

A pull request to fix this is welcome.

@frederick-vs-ja
Copy link
Contributor

Would it be better to show the synopsis for coroutine_traits and reword [coroutine.traits.primary]/1 like this?

namespace std {
  template<class R, class... ArgTypes>
  struct coroutine_traits {
    using promise_type = R::promise_type; // not always present
  };
}

For the primary template, the member typedef-name promise_type is declared if and only if the qualified-id R::promise_type is valid and denotes a type ([temp.deduct]).

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 a pull request may close this issue.

3 participants