Of course, this is the fastest (sizeChar and BYTE_DEFINE as above) template<typename T> int my_sizeof_4() { int c = sizeChar(); T*...
All solutions compare the size to char The third is simplest and is applicable to any class or structure besides basic types. Other two are...
Of course we can create a template to get absolute value from any type of integers: #define BYTE_SIZE 8 template <typename T> T mabs(T x) {...
You can disguise but you can't easily remove if statement since the extraction from an integer is different if the number is positive or negative....
Separate names with a comma.