GG
Public Member Functions
GG::ListBox::DefaultRowCmp< RowType > Struct Template Reference

#include <ListBox.h>

List of all members.

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 445 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 596 of file ListBox.h.


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