XLL+ Class Library

matrix<T>::find_in_col

Searches one column for a value

[C++]
size_t find_in_col(
   const T& t,
   size_t col
) const;

Parameters

t

Value to be matched.

col

Column coordinate.

Return value

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

Remarks

The specified column of the matrix is searched, top to bottom, until

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

Requirements

Header: matrix.h

See Also

matrix<T> Class | matrix<T> Methods