set_t type

This commit is contained in:
2026-08-19 21:26:34 +02:00
parent 2a22daa0c0
commit 4785b84227
2 changed files with 996 additions and 2 deletions
+16 -2
View File
@@ -1,10 +1,24 @@
# DLibC
Some custom C types and thing I often use.
## Description
Some custom C types and functions I often use.
These are generally header-only, but if they have source files, they'll be in their own directories
They're generally designed for C23 onwards, but "should" work with older versions.
Licensed under the MIT License (because GPL doesn't make sense for this)
The goal is for the types themselves to be memory-safe, however keep in mind that they're still only as good as your usage of them.
## Usage
Literally just copy the header file you want and let your favourite semi-usable build system do the rest.
## List of "What we have"
- `dlibc/vector.h` - A vector type for storing a dynamic amount of type T, with an optional destructor.
- `dlibc/set.h` - A set type for storing a dynamic amount of type T, with enforced uniqueness and an optional destructor and comparator.
## Contributing
If you want to contribute, please make a pull request and I'll review it. If you want to contribute a new type or function, please make sure it is useful and not just a "cool" thing.
## Legal Mumbo Jumbo
Licensed under the MIT License (because GPL doesn't make sense for this (sorry Stallman))
Copyright (c) 2026 DcruBro