lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Windows heap. More...
#include <win_heap.h>
Public Types | |
typedef size_t | size_type |
Size type. | |
Static Public Member Functions | |
static LEAN_MAYBE_EXPORT void * | allocate (size_type size) |
Allocates the given amount of memory. | |
static LEAN_MAYBE_EXPORT void | free (void *memory) |
Frees the given block of memory. | |
template<size_t Alignment> | |
static LEAN_INLINE void * | allocate (size_type size) |
Allocates the given amount of memory respecting the given alignment. | |
template<size_t Alignment> | |
static LEAN_INLINE void | free (void *memory) |
Frees the given aligned block of memory. | |
static LEAN_INLINE void | free (void *memory, size_t alignment) |
Frees the given aligned block of memory. | |
Static Public Attributes | |
static const size_type | default_alignment = LEAN_ASSUME_WIN_ALIGNMENT |
Default alignment. |
Windows heap.