MeshLib C++ Docs
Loading...
Searching...
No Matches
MRAllocator.h File Reference
#include "MRMeshFwd.h"
#include <memory>
#include <new>
#include <type_traits>

Go to the source code of this file.

Classes

struct  MR::Allocator< T >
struct  MR::Allocator< T >::rebind< U >

Namespaces

namespace  MR
 Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
namespace  MR::detail
 for internal use: namespace detail is not bound to other languages

Macros

#define MR_ALLOCATOR_IS_MIMALLOC
 mr_enable_mimalloc executables forward malloc to the same mimalloc; MRMESH_NO_MIMALLOC, see cmake/Modules/Mimalloc.cmake

Functions

void * MR::detail::mimallocNewN (std::size_t count, std::size_t size)
void * MR::detail::mimallocNewAligned (std::size_t size, std::size_t alignment)
void MR::detail::mimallocFree (void *p) noexcept
template<typename T, typename U>
bool MR::operator== (const Allocator< T > &, const Allocator< U > &) noexcept

Variables

template<typename T, typename = void>
constexpr std::size_t MR::cAllocatorAlignment = alignof( T )
 the alignment of the memory Allocator<T> allocates: alignof( T ), or T::cAllocAlignment if T defines a greater one

Macro Definition Documentation

◆ MR_ALLOCATOR_IS_MIMALLOC

#define MR_ALLOCATOR_IS_MIMALLOC

mr_enable_mimalloc executables forward malloc to the same mimalloc; MRMESH_NO_MIMALLOC, see cmake/Modules/Mimalloc.cmake