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

[reflection][feat]Add index of #851

Merged
merged 2 commits into from
Dec 11, 2024
Merged

Conversation

qicosmos
Copy link
Collaborator

Why

add new index_of interface.

What is changing

Example

struct simple {
  int color;
  int id;
  std::string str;
  int age;
};

  auto i = index_of(&simple::id);
  CHECK(i == 1);
  i = index_of(&simple::age);
  CHECK(i == 3);

Copy link

for detail, goto summary download Artifacts base-ylt-cov-report(base commit coverage report) and ylt-cov-report(current pull request coverage report)

@qicosmos qicosmos merged commit 0029f20 into alibaba:main Dec 11, 2024
36 checks passed
@qicosmos qicosmos deleted the add_index_of branch December 11, 2024 03:28
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