Back to Adaptive Vision Library website

You are here: Start » Function Reference » Array Basics » AvsFilter_SetMultipleArrayElements

AvsFilter_SetMultipleArrayElements


This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.

Header:STD.h
Namespace:avs

Sets elements of an array to new values.

Syntax

void avs::AvsFilter_SetMultipleArrayElements
(
	atl::Array<Type>& ioArray,
	const atl::Array<int>& inIndices,
	bool inInverse,
	const atl::Array<Type>& inNewValues
)

Parameters

Name Type Default Description
ioArray Array<Type>&
inIndices const Array<int>& Indices within the array
inInverse bool False Reversed order in the array
inNewValues const Array<Type>& Values to be set

Examples

inArray = {1,4,3,2,5}
inIndices = {0,2,4}
inNewValues = {8,7,6}
outArray = {8,4,7,2,6}

Errors

List of possible exceptions:

Error type Description
DomainError Inconsistent array lengths in SetMultipleArrayElements.
DomainError Index out of range in SetMultipleArrayElements.

See Also