Skip to content

Commit 6218f76

Browse files
committed
Update README.md
1 parent 4f10e65 commit 6218f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Put `MemoryPool.h` and `MemoryPool.tcc` into your project folder and include `Me
3131
template <typename T, size_t BlockSize = 4096>
3232
```
3333

34-
Here, `T` is the type of the objects you want to allocate and `BlockSize` is the size of the chunks in bytes the allocator will ask from the system. `T` can be any object, while `BlockSize` needs to be at least twice the size of `T`. After that, you create an instance of `MemoryPool` class and use it just like a standard allocator object. Here is an example:
34+
Here, `T` is the type of the objects you want to allocate and `BlockSize` is the size of the chunks in bytes the allocator will ask from the system (see Picking BlockSize for more information). `T` can be any object, while `BlockSize` needs to be at least twice the size of `T`. After that, you create an instance of `MemoryPool` class and use it just like a standard allocator object. Here is an example:
3535
```C++
3636
#include <iostream>
3737
#include "MemoryPool.h"

0 commit comments

Comments
 (0)