Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
import "reflect"
var t T
tType := reflect.TypeOf(t)
n := tType.Size()
auto n = T.sizeof;
n := SizeOf(T);
import pympler.asizeof
n = pympler.asizeof.asizeof(t)
n = sizeof (t);
let n = ::std::mem::size_of::<T>();