General Purpose library for Freestanding C++ and POSIX systems
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

20 satır
255 B

4 yıl önce
4 yıl önce
4 yıl önce
  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. }