// IBM Open Class Library
//
// Licensed Materials - Property of IBM
//
// (C) Copyright IBM Corporation, 1992, 1997 All Rights Reserved
//
// Revision: 91 1.5.1.3 source/core/collect/iikeyops.h, collection, ioc.v400, 980918 
#ifndef _IIKEYOPS_
#define _IIKEYOPS_

#include <iiglobal.h>
#include <iistream.h>
#include <inumpos.h>
#include <stddef.h>







#pragma info (nocls, nocnd, nocns, nocnv, noext, nognr, novft)






#if __IBMCPP__ >= 400
#pragma namemangling(compat)
#endif

// indirection for keys

template <class Key>
void* IKeyFromOps (Key const&);

template <class Key>
Key const& IKeyForOps (Key const*);

#pragma pack(push,4)
#pragma enum(4)

// key extension

template <class Element, class ElementOps>
class IC_EXPORTC IOpsWithKey : public ElementOps {
public:

  ElementOps
           keyOps;

           IOpsWithKey      ();

           IOpsWithKey      (void*);

  Element const&
           Key              (Element const&) const;

protected:

private:

};

#pragma enum(pop)
#pragma pack(pop)

#if __IBMCPP__ >= 400
#pragma namemangling()
#endif





#include <iikeyops.inl>


#pragma info (restore)


#endif // _IIKEYOPS_
