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

Add best::bind, best::row::select(), allow some bytes.h functions in constexpr #10

Merged
merged 6 commits into from
Jun 21, 2024

Conversation

mcy
Copy link
Owner

@mcy mcy commented Jun 21, 2024

This change focuses on some improvements needed by reflection. These are:

  • best::row::query(), which queries a row for specific elements based on their type (and BestRowKey).
  • best::bind, a tag that changes best::row and best::option's deduction guides. best::row{best::bind, a, b, c} will always deduce a row of references, similar to std::tie().
  • best::compare_bytes and best::search_bytes are constexpr for best::span<char> et. al.
  • Changed the implementation details banner.
  • Moved all of the best::span function definition out of the class, since it was pretty cluttered.

@mcy mcy merged commit 22d2a9f into main Jun 21, 2024
2 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.

None yet

1 participant