Author Topic: Best practice of key-value pair in Yate's source code (C++)  (Read 10402 times)

feredi

  • Newbie
  • *
  • Posts: 18
    • View Profile
Best practice of key-value pair in Yate's source code (C++)
« on: March 13, 2015, 08:30:08 AM »
Hi all,

Could anybody let me know what's the best practice of using a key-value pair of objects in Yate's source code? I am already aware of TokenDict but it's not looking optimized when performance matters because I need to iterate through all objects in order to find the value of a pair when I have the key. I am specifically looking for an equivalent to Dictionary class in C# so that it must be following Yate's coding style as well. Does yatelib have any equivalent or should I consider using STL's unordered_map or similar? I'm waiting to hear your suggestions but please consider performance and memory usage which are highly important in my scenario.

Regards
« Last Edit: March 13, 2015, 12:11:04 PM by feredi »