Back to FabImage Library website
You are here: Start » Function Reference » All Functions » Array Basics » SkipNotSingle
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 has exactly one element, then the element is copied to the output; otherwise Nil is returned.
Applications: Changes execution mode from array mode to conditional mode.
Syntax
void fil::SkipNotSingle ( const ftl::Array<Type>& inArray, typename ftl::ToConditionalType<Type>::Type& outObject, bool& outIsSingle )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inArray | const Array<Type>& | Array that may have exactly one element | |
![]() |
outObject | typename ToConditionalType<Type>::Type& | The single array element, or Nil | |
![]() |
outIsSingle | bool& |