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

cmc_collection base data type #41

Open
LeoVen opened this issue Dec 14, 2023 · 0 comments
Open

cmc_collection base data type #41

LeoVen opened this issue Dec 14, 2023 · 0 comments
Labels
feature request Feature requests

Comments

@LeoVen
Copy link
Owner

LeoVen commented Dec 14, 2023

struct cmc_collection {
    enum cmc_collection_type type; // DEQUE, HASHMAP, LIST, STACK, etc
    const char *key_type;
    const char *val_type;
};

A cmc_collection is the common interface to all data structures so that you can differentiate them when storing them on void pointers

@LeoVen LeoVen added the feature request Feature requests label Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature requests
Projects
None yet
Development

No branches or pull requests

1 participant