Hi,
Iwas trying to look for a STL datastructure in C++ where I can store structure variables and then get out value from it by just comparing the value as follows;
The structure variable: "strctvar";
The STL datastructure: "STLstruct" ;
Storing multiple different of "strctvar"s into "STLstruct" ;
to get a particular value of "strctvar" in "STLstruct" , I want it to be as simple as
newstrctvar = STLstruct.value ("xyz") ;
where "xyz" is a value of"name" in the structure
struct
{
string name;
int x;
}strctvar;
Is any thing like this possible...
I think I am asking too much...but I think there i something like this in STL but cant find which one is it. So please help me find the one..
Thank You in Advance
Iwas trying to look for a STL datastructure in C++ where I can store structure variables and then get out value from it by just comparing the value as follows;
The structure variable: "strctvar";
The STL datastructure: "STLstruct" ;
Storing multiple different of "strctvar"s into "STLstruct" ;
to get a particular value of "strctvar" in "STLstruct" , I want it to be as simple as
newstrctvar = STLstruct.value ("xyz") ;
where "xyz" is a value of"name" in the structure
struct
{
string name;
int x;
}strctvar;
Is any thing like this possible...
I think I am asking too much...but I think there i something like this in STL but cant find which one is it. So please help me find the one..
Thank You in Advance
Comment