Back to Aurora Vision Library website

You are here: Start » Function Reference » 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
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 avl::SkipNotSingle
(
	const atl::Array<Type>& inArray,
	typename atl::ToConditionalType<Type>::Type& outObject,
	bool& outIsSingle
)

Parameters

Name Type Default Description
Input value inArray const Array<Type>& Array that may have exactly one element
Output value outObject typename ToConditionalType<Type>::Type& The single array element, or Nil
Output value outIsSingle bool&