Skip to content

✨ Add a couple of useful name utilities - #422

Merged
elbeno merged 1 commit into
intel:mainfrom
elbeno:extra-name-utils
Sep 17, 2026
Merged

elbeno merged 1 commit into
intel:mainfrom
elbeno:extra-name-utils

Conversation

@elbeno

@elbeno elbeno commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Problem:

  • Using names in metaprogramming often involves matching on a name, using a quoted metafunction.

Solution:

  • Add same_name and matching_name.

Problem:
- Using names in metaprogramming often involves matching on a name, using a
  quoted metafunction.

Solution:
- Add `named_with` concept and `matching_name_q` quoted metafunction.
@nikhilshahani

Copy link
Copy Markdown

Suggestion for a follow-up PR: The existing ct_string documentation covers the core string and cts_t APIs, but the named-type helpers are not documented yet. It would be useful to add a small section covering named, with_name, name_of_v, constant_name_of_t, and constant_name_of_v, along with the new matching_name / same_name predicates and their _q forms.

@elbeno
elbeno merged commit 9767ab7 into intel:main Sep 17, 2026
27 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.

2 participants