Structures and Patterns I like to use, in Modern C++
- C++ 100%
| testing | ||
| .clang-format | ||
| .clangd | ||
| event.h | ||
| LICENSE | ||
| list.h | ||
| README.md | ||
| region.h | ||
omni
Structures and Patterns I like to use in Modern C++(20)
Features
- Header(s) only, each feature separated into its own header
- No dependencies
- Templated
- C++20
omni::list
Stock-standard linked list
- queue-like and stack-like (push, pop, nq, dq)
- "random access" (
operator[]) - sorting (eventually)
omni::event_stream
Primitive structure useful for things like:
- input handling
- button press detection
- double-clicks
- etc.
omni::region
Helpful for mapping and testing rectangular regions of a screen or widget
- resetting bounds and testing bounds
- exclusions and exclusion bounds (eventually)