GG: GG::ListBox::DefaultRowCmp< RowType > Struct Template Reference

GG

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
GG::ListBox::DefaultRowCmp< RowType > Struct Template Reference

`#include <ListBox.h>`

## Public Member Functions
bool | operator() (const Row &lhs, const Row &rhs, std::size_t column) const

## Detailed Description

### template<class RowType>
struct GG::ListBox::DefaultRowCmp< RowType >

Sorts two Rows of a ListBox using operator<() on the Row::SortKeyType provided by the rows' SortKey() methods.

If you want to use operator<() with a Row subclass DerivedRow that has a custom SortKeyType, use DefaultRowCmp<DerivedRow>.

Definition at line 446 of file ListBox.h.

## Member Function Documentation

template<class RowType >

bool GG::ListBox::DefaultRowCmp< RowType >::operator() | ( | const Row & | lhs,
|  | const Row & | rhs,
|  | std::size_t | column
| ) |  | const

Returns true iff lhs.SortKey( column ) < rhs.SortKey( column ).

Definition at line 597 of file ListBox.h.

The documentation for this struct was generated from the following file:

- ListBox.h