I
itt ium
Hi Group,
I have a situation where I have a database with key as vector of boost::any(or handle classes).Size of key vector is fixed and order of value type invector is also fixed. I want to match the map at run time with some input pattern vector of boost::any. some of the values in input pattern may be NIL that will be defined by some special value of data type.
A match will be found when all non NIL values in the vector matches.
Matching will be assumed to be failed in following cases
1. Size of input pattern (vector) is not same as size of keys (vector) in the container
2. Non NIL key does not matches
I am interested to know the **fastest** container for this case. If solution involves map or hash, I will appreciate some hint on writing less_than orhash function for this situation.
I am open to any dea.
thanks
Ittium
I have a situation where I have a database with key as vector of boost::any(or handle classes).Size of key vector is fixed and order of value type invector is also fixed. I want to match the map at run time with some input pattern vector of boost::any. some of the values in input pattern may be NIL that will be defined by some special value of data type.
A match will be found when all non NIL values in the vector matches.
Matching will be assumed to be failed in following cases
1. Size of input pattern (vector) is not same as size of keys (vector) in the container
2. Non NIL key does not matches
I am interested to know the **fastest** container for this case. If solution involves map or hash, I will appreciate some hint on writing less_than orhash function for this situation.
I am open to any dea.
thanks
Ittium