General Purpose library for Freestanding C++ and POSIX systems
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ludovic 'Archivist' Lagouardette 682989d5e1 Made most bloomfilter constants ULL 1 year ago
.vscode "fixed" the sort, will require more work 1 year ago
extra_tests/001_test Updating bottleneck with a semaphore 1 year ago
include Made most bloomfilter constants ULL 1 year ago
tests Nico Lomuto would be proud... if he didn't hate that algo so much 1 year ago
.gitignore gitignore 1 year ago
LICENSE Initial commit 3 years ago
Makefile Added potential extra tests (001 is a placeholder) 1 year ago Put some documentation 3 years ago
blacklist.txt Fixed misplaced function 2 years ago
doxy.config Started documenting and added a doxygen config 2 years ago
tests.cpp Added a new compiler flag 1 year ago


General Purpose library for Freestanding C++ environment and POSIX systems.

Expects C++17



Also named "slices" in other languages, they are a combination of a pointer and a size.


A fixed size, inplace array.


A resizable, fragmentation resistant array, it associates elements with fixed indices. It will reuse deleted indices.


A Maybe monad, will not allocate for final classes or primitives.

variant and fixed_variant








Internal file-system

GP Configuration

enum class gp_errorcodes

This enum should not contain any non-zero value.

  • infinite_skipstone: used when a linear probing reaches infinity lookup

Generic elements

  • constexpr bool gp_config::has_exceptions: enables or disables exceptions throwing
  • constexpr bool gp_config::has_buffer_bounds: enables or disables bound checking
  • constexpr size_t gp_config::arc4random_strength: determines the amount of shuffling of the arc4random PRNG
  • constexpr /* T */ gp_config::assertion: T is a callable type taking a boolean predicate and a const char*
  • typedef /* T */ file_descriptor_t: T is an integer type. No negative value should be expected

Rendering and mathematics

  • using gp_config::rendering::default_type: provide a numeric type for rendering and for the mathematical framework
  • constexpr default_type gp_config::rendering::epsilon: a small value of the default type (example for float: 0.001f)
  • #define GP_CONFIG__RENDERING__COLOR_T: a configuration define for storing a color for rendering purposes


  • using gp_config::memory_module::default_allocator: a default constructible allocator type
  • constexpr bool gp_config::memory_module::is_ok: true if the default allocator is able to allocate, false if not