Repository navigation
Conversation
The mpl facilities now live entirely in the functional/mpl/ folder, next to mpl/conditional.h, instead of in a header beside the folder. Co-Authored-By: Claude Opus 5
…ience.h The `check_if*`, `finds_if_has*`, `finds_satisfied_by` and `counts_if_has` compositions move out of mpl/quoted_metafunctions.h into the inline namespace `internal::mpl::convenience`, which `internal` nominates with a using-directive, so their unqualified uses inside `internal` stay unchanged. Headers using only the mpl base include mpl/quoted_metafunctions.h, the others mpl/convenience.h; table_definitions.h and serializing_util.h now include it instead of relying on transitive inclusion. Co-Authored-By: Claude Opus 5
…mments Co-Authored-By: Claude Opus 5
node_tuple.h and storage.h relied on transitive inclusion. Co-Authored-By: Claude Opus 5
`tuple_has*`, `find_tuple_*` and `count_tuple` invoke the convenience quoted metafunctions directly on any type list, so they move from functional/tuple_helper/tuple_traits.h into functional/mpl/convenience.h, inside the inline namespace `mpl::convenience`. Co-Authored-By: Claude Opus 5
It is a type trait over a parameter pack, unrelated to tuples, so it joins the generic internal type traits next to `common_type_of`. Co-Authored-By: Claude Opus 5
`mpl::transforms<Q>` and `mpl::transforms_fn<Fn>` join `finds`, `counts` and `contains` in the mpl base; `transforms_fn` invokes `Fn` directly rather than through the SFINAE-friendly `quote_fn`, so that errors in `Fn` surface unaltered. `transform_tuple_t` moves into the convenience layer as its invocation, and the ad-hoc `tuple_transformer` struct is gone; functional/tuple_helper/tuple_transformer.h keeps the value-level recombination and construction from tuples. Co-Authored-By: Claude Opus 5
mpl computations are read through `mpl::invoke_t`, and the convenience invocations (`count_tuple`, `find_tuple_type`, ...) carry no `_t` suffix. Co-Authored-By: Claude Opus 5
This branch has not been deployed
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.
Stacked on #1596.
functional/mpl.hsat beside thefunctional/mpl/folder, which held onlyconditional.h, and mixed two layers: the mpl base insqlite_orm::internal::mpland the convenience quoted metafunctions insqlite_orm::internal.functional/mpl.hmoves tofunctional/mpl/quoted_metafunctions.h(pure move, its own commit).check_if*,finds_if_has*,finds_satisfied_by,counts_if_has) move tofunctional/mpl/convenience.h, into the inline namespaceinternal::mpl::convenience.internalnominates it with a using-directive, so their unqualified uses insideinternalare unchanged.mpl/quoted_metafunctions.h, the othersmpl/convenience.h;table_definitions.handserializing_util.hnow include it instead of relying on transitive inclusion. Likewise,node_tuple.handstorage.hnow includempl/conditional.hformpl::conditional_t.functional/tuple_helper/tuple_traits.h(tuple_has*,find_tuple_*,count_tuple) invoke the convenience quoted metafunctions directly on any type list, so they move intompl/convenience.has well;tuple_traits.his gone.mpl::transforms<Q>andmpl::transforms_fn<Fn>joinfinds/counts/containsin the mpl base;transforms_fninvokesFndirectly instead of through the SFINAE-friendlyquote_fn, so errors inFn(e.g. an unsupported column expression) surface unaltered.transform_tuple_tbecomes their convenience invocationtransform_tuple, without_tlikecount_tuple; the ad-hoctuple_transformerstruct is gone.same_or_void(formerlytuple_helper/same_or_void.h) is a trait over a parameter pack, unrelated to tuples, and moves intofunctional/type_traits.h.tuple_helper/now holds only operations onstd::tuple.is_quoted_metafuntionis corrected tois_quoted_metafun**c**tion, and the doc comments ofcountsandcontainsdescribe what they return.All of it is internal; consumers observe no change.
🤖 Generated with Claude Code