
Public Member Functions | |
| Allocator * | get () const |
| allocator_ref (Allocator *allocator=0) | |
| template<typename Other> | allocator_ref (const allocator_ref< Other, Allocator > &other) |
| Value * | allocate (size_t n) |
| void | deallocate (void *adrs, size_t n) |
Private Attributes | |
| Allocator * | allocator_ |
|
||||||||||
|
Definition at line 208 of file test_tree.cpp. References allocator_ref< Value, Allocator >::allocator_.
00208 : allocator_( allocator ) {} |
|
||||||||||||||
|
Definition at line 210 of file test_tree.cpp. References allocator_ref< Value, Allocator >::allocator_.
00210 : allocator_( other.get() ) {} |
|
||||||||||
|
Definition at line 211 of file test_tree.cpp. References allocator_ref< Value, Allocator >::allocator_.
00211 {
00212 return reinterpret_cast< Value* >( allocator_->allocate( n ) );
00213 }
|
|
||||||||||||||||
|
Definition at line 214 of file test_tree.cpp. References allocator_ref< Value, Allocator >::allocator_.
00214 {
00215 allocator_->deallocate( adrs, n );
00216 }
|
|
|||||||||
|
Definition at line 203 of file test_tree.cpp. References allocator_ref< Value, Allocator >::allocator_.
00203 { return allocator_; }
|
|
|||||
|
Definition at line 201 of file test_tree.cpp. Referenced by allocator_ref< Value, Allocator >::allocate(), allocator_ref< Value, Allocator >::allocator_ref(), allocator_ref< Value, Allocator >::deallocate(), and allocator_ref< Value, Allocator >::get(). |
1.3.6