Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/r533-code/colt-structs
https://github.com/r533-code/colt-structs
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/r533-code/colt-structs
- Owner: R533-Code
- Created: 2022-09-12T06:45:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-28T19:58:23.000Z (almost 2 years ago)
- Last Synced: 2024-11-06T07:21:08.213Z (2 months ago)
- Language: C++
- Size: 310 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Colt struct:
Contains various data structures, and C++ utilities.# Allocators:
This library implements various allocators with the purpose of making allocations faster.
Allocations result in a `MemBlock` or a pointer and a size.
Allocations through the global allocator of the library cannot fail, which means that if an allocation will return an empty `MemBlock`, the allocator will call functions registered with `RegisterOnNULLFn` followed by an `abort`.# Data Structures:
- `Optional`: Optional value that can contain a value.
- `Expected`: Expected value that can contain a value or an error value.All the allocations that these structures perform uses the Colt global allocator.
- `Vector`: Contiguous dynamic array of objects.
- `SmallVector`: Contiguous dynamic array of objects with a stack buffer.
- `String`: Optionally NUL terminated dynamic array of characters with a stack buffer.
- `UniquePtr`: Automatically managed pointer to a resource
- `Map`: Key/Value associative container