| 61 | } |
| 62 | |
| 63 | inline reference operator[](int i){ |
| 64 | if( i < 0 || i>=static_cast<int>(dims.size()) ) throw std::range_error("index out of bounds") ; |
| 65 | return dims[i] ; |
| 66 | } |
| 67 | inline const_reference operator[](int i) const{ |
| 68 | if( i < 0 || i>=static_cast<int>(dims.size()) ) throw std::range_error("index out of bounds") ; |
| 69 | return dims[i] ; |