allocator.h 361 B

1234567891011121314
  1. #pragma once
  2. #ifdef NETLIBA_WITH_NALF
  3. #include <library/cpp/malloc/nalf/alloc_helpers.h>
  4. using TWithCustomAllocator = TWithNalfIncrementalAlloc;
  5. template <typename T>
  6. using TCustomAllocator = TNalfIncrementalAllocator<T>;
  7. #else
  8. #include <memory>
  9. typedef struct {
  10. } TWithCustomAllocator;
  11. template <typename T>
  12. using TCustomAllocator = std::allocator<T>;
  13. #endif