# std::slice_array

From cppreference.com
< cpp‎ | numeric‎ | valarray

Defined in header `<valarray>` |  |
template< class T > class slice_array; |  |

`std::slice_array` is a helper template used by std::slice subscript operator. It has reference semantics to a subset of the array specified by the `std::slice` object.

### Member types

Type | Definition
`value_type` | `T`

### Member functions

(constructor) | constructs a `slice_array` (public member function)
(destructor) | destroys a `slice_array` (public member function)
operator= | assigns contents (public member function)
operator+=operator-=operator*=operator/=operator%=operator&=operator|=operator^=operator<<=operator>>= | performs arithmetic operation on the array referred by slice. (public member function)

### Example

| This section is incomplete Reason: no example

### See also

gslice_array | proxy to a subset of a valarray after applying a gslice (class template)

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/numeric/valarray/slice_array&oldid=105442"