StaticRowView comparison operators

template<typename U>
bool operator==(U const &that) const

Equality operator.

Template Parameters:

U – either Row or RowView

Parameters:

thatRow or RowView object for comparison.

Returns:

Returns true if the first size() entries of that equal the entries of this, and false if not.

Complexity:

At worst \(O(n)\) where \(n\) is the size of the row view.

template<typename U>
bool operator!=(U const &that) const

Inequality operator.

Template Parameters:

U – either Row or RowView

Parameters:

thatRow or RowView object for comparison.

Returns:

Returns true if the first size() entries of that dp not equal the entries of this, and false otherwise.

Complexity:

At worst \(O(n)\) where \(n\) is the size of the row view.

template<typename U>
bool operator<(U const &that) const

Lexicographical comparison of rows.

Template Parameters:

U – either Row or RowView

Parameters:

thatRow or RowView object for comparison.

Returns:

Returns true if this is lex less than that that and false otherwise.

Complexity:

At worst \(O(n)\) where \(n\) is the size of the row view.

template<typename U>
bool operator>(U const &that) const

Lexicographical comparison of rows.

Template Parameters:

U – either Row or RowView

Parameters:

thatRow or RowView object for comparison.

Returns:

Returns true if this is lex greater than that that and false otherwise.

Complexity:

At worst \(O(n)\) where \(n\) is the size of the row view.