Back to Aurora Vision Library website

You are here: Start » Function Reference » All Functions » 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
Module: FoundationLite

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
Input value inSize const int 0 - 100000000 Size of the array being constructed
Input value inValue const Type& Common value of the array elements
Output value 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