Back to FabImage Library website
You are here: Start » Function Reference » All Functions » Array Basics » SkipEmptyArray
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: | fil |
Module: | FoundationLite |
If the input array is not empty, then it is copied to the output; otherwise Nil is returned.
Applications: Secures against domain errors caused by empty arrays, e.g. just before the GetMaximumElement filter is to be invoked.
Syntax
void fil::SkipEmptyArray ( const ftl::Array<Type>& inArray, ftl::Conditional<ftl::Array<Type> >& outNotEmptyArray, bool& outIsNotEmpty )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inArray | const Array<Type>& | Array that may be empty or not | |
![]() |
outNotEmptyArray | Conditional<Array<Type> >& | Not empty array or Nil | |
![]() |
outIsNotEmpty | bool& |
Remarks
This filter can be replaced with the following formula:
