Namespace for utility functions that operate on arrays of elements.
Synopsis
Declared in <bslalg_arrayprimitives.h>
struct ArrayPrimitives;
Description
This struct provides a namespace for a suite of independent utility functions that operate on arrays of elements of parameterized type TARGET_TYPE. Depending on the traits of TARGET_TYPE, the default and copy constructors, destructor, assignment operators, etcetera may not be invoked, optimized away by no‐op or bit‐wise move or copy.
Type Aliases
Name |
Description |
Implementation detail for |
|
Standard signed difference type used by array primitive operations. |
|
Standard unsigned size type used by array primitive operations. |
Static Member Functions
Name |
Description |
|
|
Value‐initialize elements into an uninitialized array. |
|
Destructively move elements into an uninitialized array. |
|
Destructively move elements while emplacing one new element. |
|
|
|
Destructively move elements while move‐inserting a source range. |
|
Emplace a newly constructed element, shifting subsequent elements. |
|
Erase a range of elements and close the gap by moving. |
|
|
|
Move‐construct elements from a range into an uninitialized array. |
|
Move‐insert a source range, shifting subsequent elements. |
|
Rotate elements so the middle becomes the new first element. |
|
Fill an uninitialized array with copies of a value. |
Created with MrDocs