MCRO
C++23 utilities for Unreal Engine.
Loading...
Searching...
No Matches
Allocator.h File Reference
#include "CoreMinimal.h"

Go to the source code of this file.

Data Structures

class  Mcro::Ansi::FAllocator
 Allocator that allocates memory using standard library functions. More...
 
class  Mcro::Ansi::FAllocator::ForAnyElementType
 
class  Mcro::Ansi::FAllocator::ForElementType< ElementType >
 
class  Mcro::Ansi::FSetAllocator
 Allocator for sets to follow standard allocation behavior. More...
 
struct  TAllocatorTraits< Mcro::Ansi::FAllocator >
 

Namespaces

namespace  Mcro
 
namespace  Mcro::Ansi
 Epic Games may not agree with standards because they know better, but sometimes we have to bare consequences of such wisdom. This namespace contains utilities which politely circumvent the obviously superior decisions Epic Games has made.
 
namespace  Mcro::Ansi::Detail
 

Typedefs

template<typename T >
using TAnsiArray = TArray<T, Mcro::Ansi::FAllocator>
 TArray alias which enforces standard memory allocations.
 
template<typename T , typename KeyFuncs = DefaultKeyFuncs<T>>
using TAnsiSet = TSet<T, KeyFuncs, Mcro::Ansi::FSetAllocator>
 TSet alias which enforces standard memory allocations.
 
template<typename K , typename V , typename KeyFuncs = TDefaultMapHashableKeyFuncs<K, V, false>>
using TAnsiMap = TMap<K, V, Mcro::Ansi::FSetAllocator, KeyFuncs>
 TMap alias which enforces standard memory allocations.
 

Functions

MCRO_API void Mcro::Ansi::Detail::OnInvalidAnsiAllocatorNum (int32 newNum, SIZE_T numBytesPerElement)
 

Detailed Description

Author
David Mórász
Date
2025

Definition in file Allocator.h.

Typedef Documentation

◆ TAnsiArray

template<typename T >
using TAnsiArray = TArray<T, Mcro::Ansi::FAllocator>

TArray alias which enforces standard memory allocations.

Definition at line 139 of file Allocator.h.

◆ TAnsiMap

template<typename K , typename V , typename KeyFuncs = TDefaultMapHashableKeyFuncs<K, V, false>>
using TAnsiMap = TMap<K, V, Mcro::Ansi::FSetAllocator, KeyFuncs>

TMap alias which enforces standard memory allocations.

Definition at line 147 of file Allocator.h.

◆ TAnsiSet

template<typename T , typename KeyFuncs = DefaultKeyFuncs<T>>
using TAnsiSet = TSet<T, KeyFuncs, Mcro::Ansi::FSetAllocator>

TSet alias which enforces standard memory allocations.

Definition at line 143 of file Allocator.h.