foonathan / memory

STL compatible C++ memory allocator library using a new RawAllocator concept that is similar to an Allocator but easier to use and write.
https://memory.foonathan.net
zlib License
1.48k stars 189 forks source link

Why beating around a bush? #130

Closed DBJDBJ closed 2 years ago

DBJDBJ commented 2 years ago

There is no way to replace the flawed modern C++ allocator concept.

But still, here you are with a new repo doing something like that? Exactly like that? Nothing like that?

Am I the only one who is confused here?

Kind regards

foonathan commented 2 years ago

The library does two things:

  1. Provide a collection of allocators that use a different allocator concept.
  2. Provide adaptors to use those allocators with the existing allocator concept.

Sure, we can't change the Allocator concept which means point 2 inherits all that disadvantages. But point 1 is still useful on its own and you can write containers against my allocator concept, completely ignoring the existence of standard allocators.