Skip to content

ptrie interface#23

Open
MortenSchou wants to merge 3 commits intopetergjoel:mainfrom
MortenSchou:ptrie-interface
Open

ptrie interface#23
MortenSchou wants to merge 3 commits intopetergjoel:mainfrom
MortenSchou:ptrie-interface

Conversation

@MortenSchou
Copy link
Contributor

Add a type interface over ptrie to make it easier to use ptries with various types, incl. basic types, string, vector, tuple, variant, and combinations of these.
For types that are vector-ish, we can directly use ptrie's vector-key funcitonality, for other types, we (de-/)serialize to a vector of byte.
It might be possible to integrate this better with the other parts of ptrie. Feedback is welcome. :)
And note: I didn't benchmark how much overhead comes from this (de-/)serialization.

Also:
Add tests that covers most basic cases.
Add dependency on boost::mp11 (used for access of correct variant)
(+small fix)

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