cpp/language/sizeof

Queries size of the object or type.

Used when actual size of the object must be known.

Syntax
Both versions are constant expressions of type std.

Explanation
@1@ Yields the size in bytes of the of. @2@ Yields the size in bytes of the object representation of the type of, if that expression is evaluated.