NAME

OTC_RankActions - Default actions for determining the rank of items.

SYNOPSIS


#include <OTC/collctn/rankactn.hh>

template<class T>
class OTC_RankActions
{
  public:
    inline static int rank(T const& theItem1, T const& theItem2);
    static int rank(T const& theItem1, T const& theItem2);
};

CLASS TYPE

Static

DESCRIPTION

This class encapsulates the default actions which are executed to determine the rank of two items. This class may be overridden for a particular type, to produce type specific behaviour.

ACTIONS

inline static int rank(T const& theItem1, T const& theItem2);

NOTES

In the default implementation, it is expected that the less than, and equals operator are either explicitly, or implicitly defined for the type.

LIBRARY

OTC

AUTHOR(S)

Graham Dumpleton

COPYRIGHT

Copyright 1992 1993 OTC LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED