Currently, I have a std::map <DWORD, DWORD> table and I'm looking for a key value matching a specific range.
For example:
Find a key value from map whose value should be either less than < 50 or greater than > 50 from the searched key value.
If the searched key value was 20 then I would want a key value of range from map i.e
-70.............20............+70 is there a better way to find a key value other than using two loop (first for less than, second for greater than) or an appropriate way to store table data for such operation?