cpp-msgpack-light 0.3.0
A light library to serialize MessagePack.
Loading...
Searching...
No Matches
msgpack_light::standard_allocator Class Reference

Class of standard allocators to allocate and deallocate memory. More...

#include <msgpack_light/standard_allocator.h>

Collaboration diagram for msgpack_light::standard_allocator:

Public Member Functions

void * allocate (std::size_t size, std::size_t)
 Allocate memory.
void deallocate (void *ptr) noexcept
 Deallocate memory.

Detailed Description

Class of standard allocators to allocate and deallocate memory.

Definition at line 31 of file standard_allocator.h.

Member Function Documentation

◆ allocate()

void * msgpack_light::standard_allocator::allocate ( std::size_t size,
std::size_t  )
inlinenodiscard

Allocate memory.

Parameters
[in]sizeNumber of bytes to allocate.
Returns
Pointer to the allocated memory.

Definition at line 39 of file standard_allocator.h.

◆ deallocate()

void msgpack_light::standard_allocator::deallocate ( void * ptr)
inlinenoexcept

Deallocate memory.

Parameters
[in]ptrPointer to the deallocated memory.

Definition at line 56 of file standard_allocator.h.


The documentation for this class was generated from the following file: