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.

20 regels
255 B

4 jaren geleden
4 jaren geleden
4 jaren geleden
4 jaren geleden
  1. #pragma once
  2. #include <stddef.h>
  3. namespace gp {
  4. struct dummy_allocator{
  5. void* allocate(size_t)
  6. {
  7. return nullptr;
  8. }
  9. bool deallocate(void*)
  10. {
  11. return false;
  12. }
  13. constexpr bool try_reallocate(void*, size_t) {
  14. return false;
  15. }
  16. };
  17. }