Back to Adaptive Vision Library website

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

FindFirst


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

Finds first location of a given value in the input array.

Syntax

void avl::FindFirst
(
	const atl::Array<Type>& inArray,
	const Type& inValue,
	atl::Conditional<int>& outIndex,
	bool& outFound = atl::Dummy<bool>()
)

Parameters

Name Type Default Description
inArray const Array<Type>& Input array
inValue const Type& Value to look for
outIndex Conditional<int>& Index of the first value occurrence in the array
outFound bool& Dummy<bool>()