Skip to content
fn

storage_nbytes

→std::size_t
int storage_nbytes(const int & s)

Returns the allocated byte size of any Storage variant.

Parameters

sStorage
Variant to query.

Returns

std::size_t

The nbytes field of whichever alternative s holds. 0 if the variant index is unrecognised (cannot happen with the current definition).