Allocate memory for n objects of type T
| 755 | public: |
| 756 | // Allocate memory for n objects of type T |
| 757 | T* allocate(fl::size n) FL_NOEXCEPT { |
| 758 | // Use a static allocator instance per type/size combination |
| 759 | SlabAllocator<T, SLAB_SIZE>& allocator = get_allocator(); |
| 760 | return allocator.allocate(n); |
| 761 | } |
| 762 | |
| 763 | // Deallocate memory for n objects of type T |
| 764 | void deallocate(T* p, fl::size n) FL_NOEXCEPT { |