T
thotashireesh
Hi All,
I am using a stl::map and my key is a structure which looks like
struct key
{
int id;
char* name;
};
struct data
{..
....
};
typedef std::map<key*,data*,compare> table;
//compare is defined too
Most of the times, I require a find(key*) and that works fine. But on a
few occasions I need to do find(name)[purpose is to check if there is
atleast one entry with that name]. This fails as my library [windriver]
seems to be creating only find(const key*) and find(const key*) const !
Is there any roundabout way or should I do a brute checking (linear
check) ?
Thanks for your time,
Shireesh
I am using a stl::map and my key is a structure which looks like
struct key
{
int id;
char* name;
};
struct data
{..
....
};
typedef std::map<key*,data*,compare> table;
//compare is defined too
Most of the times, I require a find(key*) and that works fine. But on a
few occasions I need to do find(name)[purpose is to check if there is
atleast one entry with that name]. This fails as my library [windriver]
seems to be creating only find(const key*) and find(const key*) const !
Is there any roundabout way or should I do a brute checking (linear
check) ?
Thanks for your time,
Shireesh