Returns the total number of elements in the array.
| 414 | |
| 415 | // Returns the total number of elements in the array. |
| 416 | int64 num_elements() const { |
| 417 | return std::accumulate(sizes_.begin(), sizes_.end(), 1LL, |
| 418 | std::multiplies<int64>()); |
| 419 | } |
| 420 | |
| 421 | const T* begin() const { return &values_[0]; } |
| 422 | T* begin() { return &values_[0]; } |