Back to Aurora Vision Library Lite website
You are here: Start » 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 |
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 - 100000000 | 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
- AvsFilter_CreateArray – Creates an array from up to 8 individual objects.
- CreateIntegerSequence – Creates an arithmetic sequence of integer numbers.