Back to Aurora Vision Library website

You are here: Start » Function Reference » All Functions » Array Basics » SkipArrayWithNils

SkipArrayWithNils


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 contains no Nil values, then it is copied to the output; otherwise Nil is returned.

Applications: Changes an array with conditional elements into a conditional array. Can be useful if some processing should be performed only when all expected objects are correctly detected.

Syntax

void avl::SkipArrayWithNils
(
	const atl::Array< typename atl::ToConditionalType<Type>::Type >& inArray,
	atl::Conditional< atl::Array<Type> >& outArray,
	bool& outIsWithoutNils
)

Parameters

Name Type Default Description
Input value inArray const Array< typename ToConditionalType<Type>::Type >& Array that may contain Nil values or not
Output value outArray ConditionalArray<Type> >& Array or Nil
Output value outIsWithoutNils bool&