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

[mdspan.submdspan] Add missing definitions for full_extent_t and full_extent #6643

Closed
wants to merge 1 commit into from

Conversation

dalg24
Copy link

@dalg24 dalg24 commented Nov 8, 2023

This attempt to fix an oversight in P2630R4 (submdspan) that was voted into the draft in Varna.

  • full_extent_t is the tag type that represents all indices.
  • full_extent is a constant of type const full_extent_t which can be passed as a slice specifier argument to submdspan().

full_extent_t is used 8x in [mdspan.submdspan].
full_extent is used in the code snippet (Example 1) in the last paragraph.
Neither is ever defined.

These can be found in the wording of P0009R16 but were removed in R17 for the sake of mdspan making it into C++23.

@jwakely
@crtrott
@tkoeppe

@tkoeppe
Copy link
Contributor

tkoeppe commented Nov 8, 2023

@CaseyCarter, @jwakely, could you please have a look?

@JohelEGP
Copy link
Contributor

JohelEGP commented Nov 8, 2023

Wasn't this #6353/LWG3970?

@dalg24
Copy link
Author

dalg24 commented Nov 8, 2023

Wasn't this #6353/LWG3970?

Yes that was it. Sorry didn't realize that was already handled. Feel free to close this.

@frederick-vs-ja
Copy link
Contributor

I'm not sure whether it's desired to handle a batch of resolutions of LWG issues in a concentrated PR. If so, we should add definitions in that PR and close this.

@jensmaurer
Copy link
Member

Duplicate of #6353.

@jensmaurer jensmaurer closed this Nov 8, 2023
@dalg24 dalg24 deleted the full_extent branch November 8, 2023 05:34
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

5 participants