XLL+ Class Library (6.3)

matrix<T>::find_in_row

Searches one row for a value

size_t find_in_row(
   const T& t,
   size_t row
) const;

Parameters

t

Value to be matched.

row

Row coordinate.

Return Value

The column of the first cell in the row that contains a matching value. matrix<T>::npos is returned if no match is found.

Remarks

The specified row of the matrix is searched, left to right, until

at(row, col) == t
at which point col is returned.

Requirements

Header: matrix.h

See Also

matrix<T> Class | matrix<T> Methods