Back to Adaptive Vision Library website
You are here: Start » Function Reference » Array Basics » SkipNotSingle
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
If the input array has exactly one element, then the element is copied to the output; otherwise Nil is returned.
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& |