Safety
These operations may be invoked concurrently on the same flattened2d.
Returns: The sum of the sizes of the inner containers that are viewable in the flattened2d.