8 #ifndef Sawyer_DefaultAllocator_H
9 #define Sawyer_DefaultAllocator_H
12 #include <Sawyer/Sawyer.h>
28 return ::operator
new(size);
38 ::operator
delete(addr);
59 template<
class Allocator>
61 Allocator &allocator_;
74 void *
allocate(
size_t size) {
return allocator_.allocate(size); }
81 void deallocate(
void *addr,
size_t size) { allocator_.deallocate(addr, size); }