# allocandrescu
[](https://crates.io/crates/allocandrescu)
[](https://docs.rs/allocandrescu)
[](https://github.com/wiktorwieclaw/allocandrescu/actions/workflows/ci.yaml)
An allocator combinators library inspired by [Andrei Alexandrescu](https://en.wikipedia.org/wiki/Andrei_Alexandrescu)'s CppCon 2015 talk [std::allocator Is to Allocation what std::vector Is to Vexation](https://www.youtube.com/watch?v=LIb3L4vKZ7U).
`allocandrescu` allows you to compose allocators using various combinators such as
`cond` and `fallback`.
It also provides a variety of simple allocators like `Stack`.
This crate depends on [`allocator-api2`](https://crates.io/crates/allocator-api2), a polyfill for the unstable [`allocator_api`](https://doc.rust-lang.org/unstable-book/library-features/allocator-api.html) feature.