Repository navigation
using the "magic_get" trick to infer a type's structured binding size - #4875
Merged
ericniebler merged 1 commit intoJun 2, 2025
Merged
ericniebler merged 1 commit into
ericniebler merged 1 commit into
Conversation
Contributor
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Contributor
Author
|
/ok to test c14376c |
Contributor
🟩 CI finished in 27m 28s: Pass: 100%/30 | Total: 3h 17m | Avg: 6m 35s | Max: 13m 05s | Hits: 90%/14798
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| CCCL Packaging | |
| libcu++ | |
| CUB | |
| Thrust | |
| +/- | CUDA Experimental |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| +/- | CCCL Packaging |
| libcu++ | |
| CUB | |
| Thrust | |
| +/- | CUDA Experimental |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
🏃 Runner counts (total jobs: 30)
| # | Runner |
|---|---|
| 17 | linux-amd64-cpu16 |
| 6 | linux-amd64-gpu-rtx2080-latest-1 |
| 4 | linux-arm64-cpu16 |
| 2 | windows-amd64-cpu16 |
| 1 | linux-amd64-gpu-h100-latest-1 |
bernhardmgruber
approved these changes
Jun 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
std::executionuses structured bindings for de-structuring a sender expression. there is no way in portable c++ to ask a type what size of structured binding it requires, or even if it can be used to initialize a structured binding at all.in ustdex, i have worked around this with a
structured_binding_sizevariable template, which needs to be specialized for a sender type if you want that type to be introspect-able.in this pr, i augment that with the "magic_get" trick to infer the number of fields that a plain struct has. this makes senders introspect-able without needing to specialize
structured_binding_size.Checklist