How do I make a template out of this resmap and resnode cl***** ? I
think I want the template will take a resnode class as parameter e.g.
template <class resnode> class resmap.
So the resnode class always needs two members mark and handle, mark is
always a boolean and hndtype in the code below will be the only thing
that would change.
typedef int hndtype;
class resnode
{
public :
bool mark;
hndtype handle;
};
typedef std::map<std::string, sndnode> maptype;
class resmap
{
maptype nds;
public :
void insert(std::string const &s, hndtype const &hnd);
}
--
[ See http://www.gotw.ca/resources/clcm.htm
for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]