|
libstdc++
|
Classes | |
| class | std::gslice |
| class | std::gslice_array< _Tp > |
| class | std::indirect_array< _Tp > |
| class | std::mask_array< _Tp > |
| class | std::slice |
| class | std::slice_array< _Tp > |
| class | std::valarray< _Tp > |
Classes and functions for representing and manipulating arrays of elements.
|
inline |
|
inline |
|
inline |
|
inline |
Copy constructor. Both slices refer to the same underlying array.
Definition at line 150 of file gslice_array.h.
References gslice_array().
Referenced by gslice_array(), and operator=().
|
inline |
Copy constructor. Both slices refer to the same underlying array.
Definition at line 145 of file indirect_array.h.
References indirect_array().
Referenced by indirect_array(), and operator=().
|
inline |
Copy constructor. Both slices refer to the same underlying array.
Definition at line 146 of file mask_array.h.
References mask_array().
Referenced by mask_array(), and operator=().
|
inline |
|
inline |
Construct a slice.
| __o | Offset in array of first element. |
| __d | Number of elements in slice. |
| __s | Stride between array elements. |
Definition at line 101 of file slice_array.h.
|
inline |
Copy constructor. Both slices refer to the same underlying array.
Definition at line 219 of file slice_array.h.
References slice_array().
Referenced by slice_array(), and operator=().
|
inlinenoexcept |
Construct an empty array.
Definition at line 625 of file valarray.
Referenced by valarray(), valarray(), valarray(), cshift(), operator%=(), operator%=(), operator&=(), operator&=(), operator*=(), operator*=(), operator+=(), operator+=(), operator-=(), operator-=(), operator/=(), operator/=(), operator<<=(), operator=(), operator=(), operator>>=(), operator>>=(), operator[](), operator[](), operator[](), operator[](), operator^=(), operator^=(), operator|=(), shift(), and swap().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Apply a function to the array.
Returns a new valarray with elements assigned to the result of applying __func to the corresponding element of this array. The new array has the same size as this one.
| __func | Function of Tp returning Tp to apply. |
|
inline |
Apply a function to the array.
Returns a new valarray with elements assigned to the result of applying __func to the corresponding element of this array. The new array has the same size as this one.
| __func | Function of const Tp& returning Tp to apply. |
|
inlinenoexcept |
Return an iterator pointing to the first element of the const valarray.
| __va | valarray. |
Definition at line 1240 of file valarray.
References __addressof().
|
inlinenoexcept |
Return an iterator pointing to the first element of the valarray.
| __va | valarray. |
Definition at line 1229 of file valarray.
References __addressof().
Referenced by cbegin(), std::vector< _Tp, _Alloc >::insert(), std::list< _Tp, _Alloc >::merge(), std::list< _Tp, _Alloc >::merge(), std::list< _Tp, _Alloc >::remove(), std::list< _Tp, _Alloc >::remove_if(), std::list< _Tp, _Alloc >::sort(), std::list< _Tp, _Alloc >::sort(), std::list< _Tp, _Alloc >::unique(), and std::list< _Tp, _Alloc >::unique().
|
inline |
Return a rotated array.
A new valarray is constructed as a copy of this array with elements in shifted positions. For an element with index i, the new position is (i - n) % size(). The new valarray has the same size as the current one. Elements that are shifted beyond the array bounds are shifted into the other end of the array. No elements are lost.
Positive arguments shift toward index 0, wrapping around the top. Negative arguments shift towards the top, wrapping around to 0.
| __n | Number of element positions to rotate. |
Definition at line 1003 of file valarray.
References valarray().
|
inlinenoexcept |
Return an iterator pointing to one past the last element of the const valarray.
| __va | valarray. |
Definition at line 1267 of file valarray.
References __addressof().
|
inlinenoexcept |
Return an iterator pointing to one past the last element of the valarray.
| __va | valarray. |
Definition at line 1251 of file valarray.
References __addressof().
Referenced by cend(), std::vector< _Tp, _Alloc >::insert(), std::list< _Tp, _Alloc >::merge(), std::list< _Tp, _Alloc >::merge(), std::vector< _Tp, _Alloc >::operator=(), std::list< _Tp, _Alloc >::remove(), std::list< _Tp, _Alloc >::remove_if(), std::list< _Tp, _Alloc >::resize(), std::list< _Tp, _Alloc >::resize(), std::list< _Tp, _Alloc >::sort(), std::list< _Tp, _Alloc >::sort(), std::list< _Tp, _Alloc >::unique(), and std::list< _Tp, _Alloc >::unique().
|
inline |
|
inline |
|
inline |
Definition at line 182 of file gslice_array.h.
|
inline |
Assign all slice elements to t.
Definition at line 165 of file gslice_array.h.
|
inline |
Assignment operator. Assigns slice elements to corresponding elements of a.
Definition at line 155 of file gslice_array.h.
References gslice_array().
|
inline |
Assign slice elements to corresponding elements of v.
Definition at line 173 of file gslice_array.h.
References std::valarray< _Tp >::size().
|
inline |
Definition at line 176 of file indirect_array.h.
|
inline |
Assign all slice elements to t.
Definition at line 165 of file indirect_array.h.
|
inline |
Assignment operator. Assigns elements to corresponding elements of a.
Definition at line 156 of file indirect_array.h.
References indirect_array().
|
inline |
Assign slice elements to corresponding elements of v.
Definition at line 170 of file indirect_array.h.
|
inline |
Definition at line 180 of file mask_array.h.
|
inline |
Assign all slice elements to t.
Definition at line 166 of file mask_array.h.
|
inline |
Assignment operator. Assigns elements to corresponding elements of a.
Definition at line 156 of file mask_array.h.
References mask_array().
|
inline |
Definition at line 171 of file mask_array.h.
|
inline |
Definition at line 247 of file slice_array.h.
|
inline |
Assign all slice elements to t.
Definition at line 236 of file slice_array.h.
|
inline |
Assignment operator. Assigns slice elements to corresponding elements of a.
Definition at line 227 of file slice_array.h.
References slice_array().
|
inline |
Assign slice elements to corresponding elements of v.
Definition at line 241 of file slice_array.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Assign elements to an array.
Assign elements of array to values in v.
| __v | Valarray to get values from. |
Definition at line 728 of file valarray.
References valarray().
|
inline |
|
inlinenoexcept |
Move assign elements to an array.
Move assign elements of array to values in v.
| __v | Valarray to get values from. |
Definition at line 752 of file valarray.
References valarray().
|
inline |
Return a reference to an array subset.
Returns a new valarray containing the elements of the array indicated by the gslice argument. The new valarray has the same size as the input gslice.
| __s | The source gslice. |
|
inline |
|
inline |
Return a reference to an array subset.
Returns a new mask_array referencing the elements of the array indicated by the argument. The input is a valarray of bool which represents a bitmask indicating which elements are part of the subset. Elements of the array are part of the subset if the corresponding element of the argument is true.
| __m | The valarray bitmask. |
Definition at line 911 of file valarray.
References valarray(), and size().
|
inline |
Return an array subset.
Returns a new valarray containing the elements of the array indicated by the argument. The input is a valarray of bool which represents a bitmask indicating which elements should be copied into the new valarray. Each element of the array is added to the return valarray if the corresponding element of the argument is true.
| __m | The valarray bitmask. |
Definition at line 898 of file valarray.
References valarray(), and size().
|
inline |
Return a reference to an array subset.
Returns an indirect_array referencing the elements of the array indicated by the argument. The elements in the argument are interpreted as the indices of elements of this valarray to include in the subset. The returned indirect_array refers to these elements.
| __i | The valarray element index list. |
Definition at line 931 of file valarray.
References valarray(), and size().
|
inline |
Return an array subset.
Returns a new valarray containing the elements of the array indicated by the argument. The elements in the argument are interpreted as the indices of elements of this valarray to copy to the return valarray.
| __i | The valarray element index list. |
Definition at line 923 of file valarray.
References valarray().
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Return a reference to an array subset.
Returns a new valarray containing the elements of the array indicated by the slice argument. The new valarray has the same size as the input slice.
| __s | The source slice. |
|
inline |
Return an array subset.
Returns a new valarray containing the elements of the array indicated by the slice argument. The new valarray has the same size as the input slice.
| __s | The source slice. |
|
inline |
|
inline |
Return a shifted array.
A new valarray is constructed as a copy of this array with elements in shifted positions. For an element with index i, the new position is i - n. The new valarray has the same size as the current one. New elements without a value are set to 0. Elements whose new position is outside the bounds of the array are discarded.
Positive arguments shift toward index 0, discarding elements [0, n). Negative arguments discard elements from the top of the array.
| __n | Number of element positions to shift. |
Definition at line 962 of file valarray.
References valarray().
|
inline |
|
inline |
Return size of slice.
Definition at line 109 of file slice_array.h.
|
inline |
Return the number of elements in array.
Definition at line 949 of file valarray.
Referenced by valarray(), valarray(), std::gslice_array< _Tp >::operator=(), operator=(), operator[](), operator[](), and operator[]().
|
inline |
|
inline |
Return array offset of first slice element.
Definition at line 105 of file slice_array.h.
|
inline |
|
inline |
Return array stride of slice.
Definition at line 113 of file slice_array.h.
|
inline |
|
inlinenoexcept |