Skip to content

[libc] Add invoke #65753

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

Closed
wants to merge 3 commits into from
Closed

[libc] Add invoke #65753

wants to merge 3 commits into from

Conversation

gchatelet
Copy link
Contributor

@gchatelet gchatelet commented Sep 8, 2023

@github-actions github-actions bot added the libc label Sep 8, 2023
@gchatelet gchatelet changed the title Add invoke [libc] Add invoke Sep 8, 2023
};

template <class F, class... Args, class Fd = typename cpp::decay_t<F>>
auto INVOKE(F &&f, Args &&...args)
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this all caps?

Copy link
Contributor Author

@gchatelet gchatelet Sep 11, 2023

Choose a reason for hiding this comment

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

This is a concept defined by the standard "23.14.3 [func.require]". INVOKE (all caps) serves as a foundation for defining std::invoke and std::invoke_result.

@gchatelet
Copy link
Contributor Author

Will be implemented in #65750

@gchatelet gchatelet closed this Sep 13, 2023
@gchatelet gchatelet deleted the invoke branch September 13, 2023 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants