#include <mallocator.hpp>
|
static constexpr bool | supports_truncated_deallocation = false |
|
static constexpr unsigned | alignment = 4 |
|
This class implements a facade against the system ::malloc()
Definition at line 22 of file mallocator.hpp.
block alb::v_100::mallocator::allocate |
( |
size_t |
n | ) |
|
|
inlinenoexcept |
Allocates the specified number of bytes. If the system cannot allocate the specified amount of memory then a null Block is returned.
- Parameters
-
- Returns
- Block with memory information
Definition at line 34 of file mallocator.hpp.
void alb::v_100::mallocator::deallocate |
( |
block & |
b | ) |
|
|
inlinenoexcept |
Frees the given block and resets it.
- Parameters
-
Definition at line 73 of file mallocator.hpp.
bool alb::v_100::mallocator::reallocate |
( |
block & |
b, |
|
|
size_t |
n |
|
) |
| |
|
inlinenoexcept |
Reallocate the specified block to the specified size.
- Parameters
-
b | The block to be reallocated |
n | The new size |
- Returns
- True, if the operation was successful.
Definition at line 55 of file mallocator.hpp.
The documentation for this class was generated from the following file: