void* realloc(void*, unsigned long int); forall(T) struct wrap { T* val; }; forall(T) static inline void realloc(wrap(T) *const this, unsigned long int size) { this->val = (T*)realloc((void*)this->val, size); }