MeshLib C++ Docs
Loading...
Searching...
No Matches
MRAllocator.h File Reference
#include "config.h"
#include "MRPch/MRBindingMacros.h"
#include <memory>
#include <new>
#include <mimalloc.h>

Go to the source code of this file.

Classes

struct  MR::AllocatorBase< T >
 not mi_stl_allocator: its construct/destroy members stop std containers from memmove-copying and skipping trivial destructors More...
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).

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

template<typename T, typename U>
bool MR::operator== (const Allocator< T > &, const Allocator< U > &) noexcept

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