Skip to content

feat(meta): trivially_copyable concept - #18

Merged
codethinki merged 1 commit into
masterfrom
feat/trivially-copyable
Oct 19, 2026
Merged

codethinki merged 1 commit into
masterfrom
feat/trivially-copyable

Conversation

@codethinki

Copy link
Copy Markdown
Owner

Summary

  • mta::trivially_copyable<T> = std::is_trivially_copyable_v<T>, next to mta::trivial
  • std has only the trait, CPT() and range_over_cpt need a concept: range_over_cpt<Rng, CPT(mta::trivially_copyable)>

For cth_engine: cmd.pushConstants() takes a contiguous range of trivially copyable elements.

Test plan

  • gcc: concepts_test 8/8, the new test included
  • clang: compiles
  • CI: Linux gcc/clang, Windows msvc/clang

std has the trait only, CPT() and range_over_cpt need a concept: range_over_cpt<Rng, CPT(mta::trivially_copyable)>.
@codethinki
codethinki merged commit 85b058b into master Oct 19, 2026
6 checks passed
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.

1 participant