#include "tensorstore/index_space/index_domain.h"
Index tensorstore::IndexDomain<Rank, CKind>::num_elements() const;

Returns the number of elements in the domain.

Pre:

valid()