Back to Aurora Vision Library Lite website
You are here: Start » All Functions » Array Basics » SkipNotSingle
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: | avl |
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 avl::SkipNotSingle ( const atl::Array<Type>& inArray, typename atl::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& |