boost::multi::subarray
Mutable D‐dimensional view into part or all of an array
Synopsis
Declared in <boost/multi/array_ref.hpp>
template<
typename T,
multi::dimensionality_type D,
typename ElementPtr = T*,
class Layout = layout_t<D, std::pointer_traits<ElementPtr>::difference_type>>
class subarray
: public const_subarray<T, D, ElementPtr, Layout>
Member Functions
Friends
Name |
Description |
|
|
|
|
|
Mutable |
Non-Member Functions
Name |
Description |
Inequality operator |
|
Equality operator |
|
Bitwise negation operator |
Derived Classes
Name |
Description |
A |
|
Description
Represents a subregion of a larger array without owning the elements. Has reference semantics: cannot be rebound, assignments are deep, and size is immutable. Invalidated if the originating array is destroyed or resized.
Template Parameters
Name |
Description |
T |
Element type |
D |
Dimensionality (non‐negative) |
ElementPtr |
Pointer‐like type to the elements (default |
Layout |
type describing strides and extensions |
Created with MrDocs