11 #ifndef __UT_SmallAlloc__
12 #define __UT_SmallAlloc__
34 {
return static_cast<T *
>(alloc(size*
sizeof(
T))); }
39 char *
copy = allocArray<char>(strlen(str)+1);
45 void *alloc(
size_t bytes);
57 size_t myHalfPageSize;
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
const char * allocString(const char *str)
T * allocArray(exint size)
int64 getMemoryUsage() const