Example of C++ Allocator: CachedObj.