General Purpose library for Freestanding C++ and POSIX systems
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

19 行
254 B

  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. }