|
| template<class TYPE , class MANIPULATOR > |
| int | manipulateElement (TYPE *array, MANIPULATOR &manipulator, int index) |
| |
| template<class TYPE > |
| int | reserve (TYPE *array, int numElements) |
| |
| template<class TYPE > |
| void | resize (TYPE *array, int newSize) |
| |
| template<class TYPE , class ACCESSOR > |
| int | accessElement (const TYPE &array, ACCESSOR &accessor, int index) |
| |
| template<class TYPE > |
| bsl::size_t | size (const TYPE &array) |
| |
| template<class TYPE > |
| bool | supportsReserve (const TYPE &array) |
| |
| template<class TYPE > |
| int | bdlat_arrayReserve (TYPE *array, int numElements) |
| |
| template<class TYPE > |
| bool | bdlat_arraySupportsReserve (const TYPE &array) |
| |
| template<class TYPE , class ALLOC , class MANIPULATOR > |
| int | bdlat_arrayManipulateElement (bsl::vector< TYPE, ALLOC > *array, MANIPULATOR &manipulator, int index) |
| |
| template<class TYPE , class ALLOC > |
| int | bdlat_arrayReserve (bsl::vector< TYPE, ALLOC > *array, int numElements) |
| |
| template<class TYPE , class ALLOC > |
| void | bdlat_arrayResize (bsl::vector< TYPE, ALLOC > *array, int newSize) |
| |
| template<class TYPE , class ALLOC , class ACCESSOR > |
| int | bdlat_arrayAccessElement (const bsl::vector< TYPE, ALLOC > &array, ACCESSOR &accessor, int index) |
| |
| template<class TYPE , class ALLOC > |
| bsl::size_t | bdlat_arraySize (const bsl::vector< TYPE, ALLOC > &array) |
| |
| template<class TYPE , class ALLOC > |
| bool | bdlat_arraySupportsReserve (const bsl::vector< TYPE, ALLOC > &array) |
| |
This namespace provides functions that expose "array" behavior for "array" types. Specializations are provided for bsl::vector<TYPE>. See the component-level documentation for more information.
This namespace declaration adds the default implementations for reserve capacity methods.
This namespace declaration adds the implementation of the "array" traits for bsl::vector to bdlat_ArrayFunctions.
- Note
- Note that
bsl::vector is the canonical "array" type.
template<class TYPE , class MANIPULATOR >
| int bdlat_ArrayFunctions::manipulateElement |
( |
TYPE * |
array, |
|
|
MANIPULATOR & |
manipulator, |
|
|
int |
index |
|
) |
| |
Invoke the specified manipulator on the address of the element at the specified index of the specified array. The supplied manipulator must be a callable type that can be called as if it had the following signature:
Return the value from the invocation of manipulator.
- Precondition
- The behavior is undefined unless
0 <= index and index < size(*array).