Back to Adaptive Vision Library website

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

AvsFilter_CreateUniformArray


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

Creates an array of the specified size with all elements initialized to the specified value.

Syntax

void avs::AvsFilter_CreateUniformArray
(
	const int inSize,
	const Type& inValue,
	atl::Array<Type>& outArray
)

Parameters

Name Type Range Default Description
inSize const int 0 - 1000000 Size of the array being constructed
inValue const Type& Common value of the array elements
outArray Array<Type>& Created array

Examples

inSize = 5
inValue = 1
outArray = {1,1,1,1,1}

Errors

List of possible exceptions:

Error type Description
DomainError Negative inSize value in CreateUniformArray.

See Also