Allocator for cache local storage. More...
#include <Cache.hpp>
Public Member Functions | |
| CacheAllocator (T *buffer, size_t size) | |
| ~CacheAllocator () | |
| operator T * () | |
| operator T * () const | |
| T * | pointer () |
| const T * | const_pointer () const |
Public Attributes | |
| T * | storage_ |
| bool | heap_ |
Allocator for cache local storage.
If you pass in a pointer to a buffer you've allocated, it uses that. Otherwise, it allocates a buffer.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool CacheAllocator< T >::heap_ |
| T* CacheAllocator< T >::storage_ |