#arena-allocator

no-std allocandrescu

A collection of various allocators and allocator combinators

5 releases

0.1.0-alpha.4 Jul 28, 2024
0.1.0-alpha.1 Jul 27, 2024

#151 in No standard library

23 downloads per month

MIT/Apache

22KB
366 lines

allocandrescu

Crates.io Released API docs Continuous integration

A collection of various allocators and allocator combinators inspired by Andrei Alexandrescu's CppCon 2015 talk std::allocator Is to Allocation what std::vector Is to Vexation and the Zig programming language.

allocandrescu allows you to safely compose allocators using combinators such as cond and fallback. It also provides a bunch of simple allocators like Stack.

This crate depends on allocator-api2, a polyfill for the unstable allocator_api feature.

Dependencies

~325KB