CrossFramework Library
|
#include <XBase/IAllocator.hpp>
アロケータインターフェース。
定数 | |
static const pword_t | DefaultAlignment = sizeof(pword_t) |
デフォルトのアライメント値。 | |
デフォルトのアロケータ | |
static IAllocator & | Default () |
デフォルトのアロケータ。 | |
static void | SetDefault (IAllocator &aAllocator) |
デフォルトのアロケータを設定する。 | |
static IAllocator & | OperatorNewDelete () |
operator new/delete を使うアロケータ。 | |
仮想関数 | |
virtual ptr_t | alloc (pword_t aSize, pword_t aAlignment=DefaultAlignment)=0 |
メモリ確保。 | |
virtual void | free (ptr_t aPtr)=0 |
メモリ解放。 |