#include <toppers/allocator.hpp>
Public 型 | |
| typedef std::size_t | size_type |
| オブジェクトのサイズ型 | |
| typedef std::ptrdiff_t | different_type |
| イテレータ(この場合はポインタ)間の距離型 | |
| typedef T * | pointer |
| ポインタ型 | |
| typedef const T * | const_pointer |
| 定数ポインタ型 | |
| typedef T & | reference |
| 参照型 | |
| typedef const T & | const_reference |
| 定数参照型 | |
| typedef T | value_type |
| オブジェクトの型 | |
Public メンバ関数 | |
| allocator () throw () | |
| コンストラクタ | |
| allocator (const Pool &pool) throw () | |
| メモリプール指定のコンストラクタ | |
| allocator (const allocator &) throw () | |
| コピーコンストラクタ | |
| template<typename T1> | allocator (const allocator< T1, Pool > &) throw () |
| テンプレート引数違いの変換コンストラクタ | |
| ~allocator () throw () | |
| デストラクタ | |
| pointer | address (reference x) const |
| 指定オブジェクトのアドレスを返す。 | |
| const_pointer | address (const_reference x) const |
| 指定オブジェクトのアドレスを返す。 | |
| T * | allocate (size_type n, const void *=0) |
| メモリブロックの割付け | |
| void | deallocate (pointer p, size_type) |
| メモリブロックの解放 | |
| size_type | max_size () const throw () |
| 割付可能な最大要素数 | |
| void | construct (pointer p, const T &value) |
| メモリブロックをT 型のインスタンスとして初期化 | |
| void | destroy (pointer p) |
| メモリブロックをT 型のインスタンスとして削除 | |