equal
deleted
inserted
replaced
736 class MmapArrayAllocator : public AllStatic { |
736 class MmapArrayAllocator : public AllStatic { |
737 private: |
737 private: |
738 static size_t size_for(size_t length); |
738 static size_t size_for(size_t length); |
739 |
739 |
740 public: |
740 public: |
|
741 static E* allocate_or_null(size_t length); |
741 static E* allocate(size_t length); |
742 static E* allocate(size_t length); |
742 static void free(E* addr, size_t length); |
743 static void free(E* addr, size_t length); |
743 }; |
744 }; |
744 |
745 |
745 // Uses malloc:ed memory for all allocations. |
746 // Uses malloc:ed memory for all allocations. |