home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
keysrt.zip
/
imysrt.hpp
< prev
next >
Wrap
Text File
|
1996-02-23
|
591b
|
31 lines
#ifndef MY_SORTED
#define MY_SORTED
#include <ivsrtset.h>
template < class Element >
class IMyOps : public IEOps < Element >
{
public:
inline IString & key(Element const& element) const
{
return (e1->Name());
}
}
template < class Element >
class IGMySortedSet : public IVGKeySortedSet < Element, IMyOps < Element > >
{
public:
typedef IVSortedSetOnBaseCursor < Element,
IGSortedSet < Element, IMyOps < Element > > > Cursor;
IMySortedSet (INumber n = 100)
: IVGSortedSet < Element, IMyOps < Element > > (n)
{ }
};
#endif