#include <stl_alloc.hpp>
Public Types | |
| typedef size_t | size_type |
| typedef ptrdiff_t | difference_type |
| typedef T * | pointer |
| typedef const T * | const_pointer |
| typedef T & | reference |
| typedef const T & | const_reference |
| typedef T | value_type |
Public Member Functions | |
| stl_allocator () | |
| stl_allocator (mem_pool &m) | |
| template<class U> | |
| stl_allocator (const stl_allocator< U > &sa) | |
| pointer | address (reference x) const |
| const_pointer | address (const_reference x) const |
| pointer | allocate (size_type n, std::allocator< void >::const_pointer=0) |
| void | deallocate (pointer p, size_type n) |
| size_type | max_size () const throw () |
| void | construct (pointer p, const T &val) |
| void | destroy (pointer p) |
| mem_pool & | pool () const |
Classes | |
| struct | rebind |
| typedef template required by STL More... | |
Definition at line 27 of file stl_alloc.hpp.
| typedef size_t ders::stl_allocator< T >::size_type |
Definition at line 31 of file stl_alloc.hpp.
| typedef ptrdiff_t ders::stl_allocator< T >::difference_type |
Definition at line 32 of file stl_alloc.hpp.
| typedef T* ders::stl_allocator< T >::pointer |
Definition at line 33 of file stl_alloc.hpp.
| typedef const T* ders::stl_allocator< T >::const_pointer |
Definition at line 34 of file stl_alloc.hpp.
| typedef T& ders::stl_allocator< T >::reference |
Definition at line 35 of file stl_alloc.hpp.
| typedef const T& ders::stl_allocator< T >::const_reference |
Definition at line 36 of file stl_alloc.hpp.
| typedef T ders::stl_allocator< T >::value_type |
Definition at line 37 of file stl_alloc.hpp.
| ders::stl_allocator< T >::stl_allocator | ( | ) |
| ders::stl_allocator< T >::stl_allocator | ( | mem_pool & | m | ) | [inline, explicit] |
| ders::stl_allocator< T >::stl_allocator | ( | const stl_allocator< U > & | sa | ) | [inline] |
| pointer ders::stl_allocator< T >::address | ( | reference | x | ) | const [inline] |
| const_pointer ders::stl_allocator< T >::address | ( | const_reference | x | ) | const [inline] |
| stl_allocator< T >::pointer ders::stl_allocator< T >::allocate | ( | size_type | n, | |
| std::allocator< void >::const_pointer | = 0 | |||
| ) | [inline] |
Definition at line 59 of file stl_alloc.hpp.
00061 { return (n!=0) ? static_cast<pointer>(mp.allocate(n*sizeof(T))) : 0; }
| void ders::stl_allocator< T >::deallocate | ( | pointer | p, | |
| size_type | n | |||
| ) | [inline] |
| size_type ders::stl_allocator< T >::max_size | ( | ) | const throw () [inline] |
| void ders::stl_allocator< T >::construct | ( | pointer | p, | |
| const T & | val | |||
| ) | [inline] |
| void ders::stl_allocator< T >::destroy | ( | pointer | p | ) | [inline] |
| mem_pool& ders::stl_allocator< T >::pool | ( | ) | const [inline] |
1.5.5