(C++)  1.0.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::MemoryPool Class Referencefinal

The MemoryPool class - preallocated memory container for optimization issues. More...

#include <MemoryPool.hh>

Public Member Functions

 MemoryPool (const std::size_t BYTES=5242880u)
 MemoryPool. More...
 
template<typename T , typename... ConstructorArguments>
T & Emplace (ConstructorArguments &&... arguments)
 
std::size_t Size () const
 
void Reset ()
 

Detailed Description

The MemoryPool class - preallocated memory container for optimization issues.

Constructor & Destructor Documentation

◆ MemoryPool()

grail::MemoryPool::MemoryPool ( const std::size_t  BYTES = 5242880u)
inline

MemoryPool.

Parameters
BYTES- determines how many bytes of memory will be preallocated

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