Template Function coal::computeMemoryFootprint

Function Documentation

template<typename T>
size_t coal::computeMemoryFootprint(const T &object)

Returns the memory footpring of the input object. For POD objects, this function returns the result of sizeof(T)

Parameters:

object[in] whose memory footprint needs to be evaluated.

Returns:

the memory footprint of the input object.