Back to FabImage Library website
You are here: Start » Function Reference » All Functions » Array Basics » FisFilter_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: | fis |
Module: | FoundationLite |
Creates an array of the specified size with all elements initialized to the specified value.
Syntax
void fis::FisFilter_CreateUniformArray ( const int inSize, const Type& inValue, ftl::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
- FisFilter_CreateArray – Creates an array from up to 8 individual objects.
- CreateIntegerSequence – Creates an arithmetic sequence of integer numbers.