XLL+ Class Library

matrix<T>::find_in_row

Searches one row for a value

[C++]
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