| 278 | void clear() { m_data = NULL; m_len = 0; m_stride = 0; } |
| 279 | |
| 280 | array_view_strided slice (size_type pos, size_type n=npos) const { |
| 281 | if (pos > size()) |
| 282 | throw (std::out_of_range ("OIIO::array_view_strided::slice")); |
| 283 | if (n == npos || pos + n > size()) |
| 284 | n = size() - pos; |
| 285 | return array_view_strided (getptr(pos), n, m_stride); |
| 286 | } |
| 287 | |
| 288 | friend bool operator== (array_view_strided<T> x, array_view_strided<T> y) { |
| 289 | if (x.size() != y.size()) // shortcut: different sizes are not == |
nothing calls this directly
no test coverage detected