#include <mrpt/utils/core_defs.h>
#include <cstring>
Go to the source code of this file.
|
| mrpt |
| This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
|
|
| mrpt::system |
| This namespace provides a OS-independent interface to many useful functions: filenames manipulation, time and date, string parsing, file I/O, threading, memory allocation, etc.
|
|
| mrpt::system::os |
| This namespace provides a OS-independent interface to low-level functions.
|
|
|
#define | mrpt_alloca(nBytes) ::malloc( nBytes ) |
| In platforms and compilers with support to "alloca", allocate a memory block on the stack; if alloca is not supported, it is emulated as a normal "malloc" - NOTICE: Since in some platforms alloca will be emulated with malloc, alloca_free MUST BE ALWAYS CALLED to avoid memory leaks. More...
|
|
#define | mrpt_alloca_free(mem_block) free(mem_block) |
| This method must be called to "free" each memory block allocated with "system::alloca": If the block was really allocated in the stack, no operation is actually performed, otherwise it will be freed from the heap. More...
|
|
#define | MRPT_MAKE_ALIGNED_OPERATOR_NEW |
|
◆ MRPT_MAKE_ALIGNED_OPERATOR_NEW
#define MRPT_MAKE_ALIGNED_OPERATOR_NEW |
Value: \
\
\
static
void *
operator new(
size_t size,
void *ptr) { return ::operator
new(
size,ptr); } \
void
operator delete(
void * memory,
void *ptr)
MRPT_NO_THROWS { return ::operator
delete(memory,ptr); } \
\
#define MRPT_NO_THROWS
C++11 noexcept: Used after member declarations.
void BASE_IMPEXP * aligned_malloc(size_t bytes, size_t alignment)
Returns an aligned memory block.
void BASE_IMPEXP aligned_free(void *p)
Frees a memory block reserved by aligned_malloc.
Definition at line 112 of file memory.h.